1234567891011121314151617181920212223242526272829 |
- apiVersion: v1
- kind: Pod
- metadata:
- name: kaniko
- spec:
- containers:
- - name: kaniko
- image: gcr.io/kaniko-project/executor:latest
- args: ["--dockerfile=/workspace/dockerfile",
- "--context=dir://workspace",
- "--destination=docker-registry.intr/webservices/apache2-php82",
- "--skip-tls-verify"]
- volumeMounts:
- - name: kaniko-secret
- mountPath: /kaniko/.docker
- - name: dockerfile-storage
- mountPath: /workspace
- restartPolicy: Never
- volumes:
- - name: kaniko-secret
- secret:
- secretName: regcred
- items:
- - key: .dockerconfigjson
- path: config.json
- - name: dockerfile-storage
- persistentVolumeClaim:
- claimName: dockerfile-claim
|