Created
October 15, 2021 09:07
-
-
Save KevinM2k/c1d05cb9b2ea855302fe4320b15b7520 to your computer and use it in GitHub Desktop.
Kaniko Pod Deployer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > deploy.yaml <<EOF | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: kaniko-$(tag) | |
namespace: kaniko | |
spec: | |
restartPolicy: Never | |
containers: | |
- args: | |
- --dockerfile=Dockerfile | |
- --context=https://<storage_account_name>.blob.core.windows.net/kaniko/$(tag).tar.gz | |
- --destination=$(registry).azurecr.io/$(project)/$(application):$(tag) | |
image: gcr.io/kaniko-project/executor:latest | |
name: kaniko-$(tag) | |
volumeMounts: | |
- name: docker-config | |
mountPath: /kaniko/.docker/ | |
- name: docker-acr-config | |
mountPath: /kaniko/.docker/acr/ | |
envFrom: | |
- secretRef: | |
name: storage-secret | |
volumes: | |
- name: docker-config | |
configMap: | |
name: docker-config | |
- name: docker-acr-config | |
secret: | |
secretName: kaniko-secret | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment