spinnaker / spinnaker

Spinnaker is an open source, multi-cloud continuous delivery platform for releasing software changes with high velocity and confidence.
http://www.spinnaker.io/
Apache License 2.0
9.28k stars 1.2k forks source link

Error on Adding Kubernetes Provider V2 Account #6801

Closed rajaps369 closed 1 year ago

rajaps369 commented 1 year ago

I was able to add Kubernetes provider V2. When I gave hal deply apply, I received the following error.

Can anyone help me out here?

bash-5.0$ hal config provider kubernetes account list

bash-5.0$ hal deploy apply

Validation in default.stats:

rajaps369 commented 1 year ago

does this required all the these parameters in spinnaker to add multi kubernets provider V2 account.?

hal config provider kubernetes account add my-k8s-account \ --provider-version v2 \ --context context-XXXXX \ --kubeconfig-file /home/spinnaker/.kube/config \ --namespaces "default,spinnaker" \ --only-spinnaker-managed=false \ --required-group-membership="" \ --allowed-accounts "" \ --user-overrides "{'serviceAccount':'dst-account'}" \ --namespace spinnaker \ --configure-image-pulling-secrets=true \ --image-pulling-secret-name XXXXXXX \ --debug

spinnakerbot commented 1 year ago

This issue hasn't been updated in 45 days, so we are tagging it as 'stale'. If you want to remove this label, comment:

@spinnakerbot remove-label stale

spinnakerbot commented 1 year ago

This issue is tagged as 'stale' and hasn't been updated in 45 days, so we are tagging it as 'to-be-closed'. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:

@spinnakerbot remove-label to-be-closed

spinnakerbot commented 1 year ago

This issue is tagged as 'to-be-closed' and hasn't been updated in 45 days, so we are closing it. You can always reopen this issue if needed.

matheushslage commented 1 year ago

Any solution for this? I've been having the same problem using OKE, simply the oci executable is not found. I'm using Ubuntu 22.04. Thanks

matheushslage commented 1 year ago

Any solution for this? I've been having the same problem using OKE, simply the oci executable is not found. I'm using Ubuntu 22.04. Thanks

Kubernetes Service Account works for me. I had a problem generating the token/secret in Kubernetes, it is no longer automatic from version 1.24, so I generated the secret manually and linked it with the service account.