$ingress = $this->cluster
->ingress()
->setName('nginx')
->setLabels(['tier' => 'backend'])
->setSelectors(['matchLabels' => ['app' => 'frontend']])
->setTls([[
'hosts' => [
'test.com',
],
'secretName' => 'verySecretName',
]])
->setRules([[
'host' => 'nginx.test.com',
'http' => [
'paths' => [[
'path' => '/',
'backend' => [
'serviceName' => 'nginx',
'servicePort' => 80,
],
]],
],
]])
->create();