Service

Default version: v1

Example

$svc = $this->cluster
    ->service()
    ->setName('nginx')
    ->setLabels(['tier' => 'backend'])
    ->setSelectors(['app' => 'frontend'])
    ->setPorts([
        ['protocol' => 'TCP', 'port' => 80, 'targetPort' => 80],
    ])
    ->create();

Last updated