I am trying to run kubectl kustomize with my kustomization.yaml having remote resources, but it then fails with the following error:
Welcome to the community.
For us to further check, would it be possible for you to share the following?
Please do mask any sensitive values/credentials you may have before sharing your configurations
Let me know how it goes.
Regards,
Mark C
Sure:
pipelines:
default:
- step:
name: Validate Kubernetes Yaml
script:
- pipe: atlassian/kubectl-run:3.2.0
variables:
DEBUG: 'true'
KUBE_CONFIG: ''
KUBECTL_COMMAND: kustomize ./kubernetes/overlays/dev
caches:
- docker
Output seems to be the same:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Thomas Skovsende
Thanks for sharing that information.
It is indeed the same error message.
Going through the error message, it seems you're cloning the repository via SSH protocol.
For that, may I know if you can clone the repository on Pipelines just fine using SSH protocol?
You can clone it using the below command before your Pipes script.
script:
- git clone git@bitbucket.org:xxx/xxx.git
- pipe: atlassian/kubectl-run:3.2.0
variables:
DEBUG: 'true'
KUBE_CONFIG: ''
KUBECTL_COMMAND: kustomize ./kubernetes/overlays/dev
Let's see if you're able to clone the repository.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, that would give me an access denied. I then created a ssh key pair for my pipeline and added it to the repos my kustomization file referred to(I suppose that would be what you would suggest next). This made the git clone work, but kubectl -k still fails with the same error as before - that git isn't in the path:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Thomas Skovsende
Thanks for doing that and for providing additional information.
I went ahead and created a support ticket for us to continue to investigate this.
You should be able to receive an email notification about it.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.