Last active
March 4, 2023 19:35
-
-
Save Neutrollized/de6b4b397964d65595e43a725a01d99e to your computer and use it in GitHub Desktop.
Medium: Workload Identity explained using kaniko
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: kaniko-wi | |
spec: | |
containers: | |
- name: kaniko | |
image: gcr.io/kaniko-project/executor:v1.9.1 | |
args: ["--dockerfile=Dockerfile", | |
"--context=gs://${GCS_BUCKET}/path/to/context.tar.gz", | |
"--destination=gcr.io/${PROJECT_ID}/${IMAGE_NAME}:${IMAGE_TAG}", | |
"--cache=true"] | |
restartPolicy: Never | |
serviceAccountName: kaniko-wi-ksa | |
nodeSelector: | |
iam.gke.io/gke-metadata-server-enabled: "true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment