'TeamCity/Azure/Kubernetes build issues
Okay, so this is a long shot but my predecessor who created this system is gone and I'm in the midst of learning Kubernetes but not fully there yet . Here is what our current infrastructure looks like. I'll note that this was working until the pod restarted when we upgraded the kubernetes cluster. The old devops guy did all the work directly on the machine and never saved the state of it to the ACR.
Azure environment with Kubernetes. TeamCity pod
What I'm trying to do: Use TeamCity to "build" our pods and deploy them in the environment. When looking at our build configuration in TeamCity, it looks like this:
kubectl build --push --registry-secret secretkey --kubeconfig /home/buildagent/.kube/config.prod -t regname.azurecr.io/frontend:215 -f Dockerfile ./
From what I can tell, this requires kubectl-build which seems to basically be a wrapper around Kaniko
Now, when I connect to the pod and try to run that command directly, I get the following:
Error: unknown command "secretkey" for "executor"
I checked around and can't find any documentation in either Kubectl-build or Kaniko related to --push and --registry-secret. I'm hoping someone has some information/experience with similar?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
