Default version: v1
v1
Official Documentation
$sa = $this->cluster ->serviceAccount() ->setName('user1') ->addSecrets(['someSecret']) ->addPulledSecrets(['postgres']) ->create();
You can also pass the secrets as K8sSecret instances:
K8sSecret
$secret = $this->cluster ->secret() ->setName('passwords') ->addData('postgres', 'postgres') ->create(); $sa->addSecrets([$secret])->update();
Last updated 3 years ago