mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-27 16:51:21 +00:00
There is no significant change to the *content* here, but a lot of typo fixes and commands added so that the autopilot works correctly.
30 lines
661 B
YAML
30 lines
661 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: kaniko-build
|
|
spec:
|
|
initContainers:
|
|
- name: git-clone
|
|
image: alpine
|
|
command: ["sh", "-c"]
|
|
args:
|
|
- |
|
|
apk add --no-cache git &&
|
|
git clone git://github.com/jpetazzo/container.training /workspace
|
|
volumeMounts:
|
|
- name: workspace
|
|
mountPath: /workspace
|
|
containers:
|
|
- name: build-image
|
|
image: gcr.io/kaniko-project/executor:latest
|
|
args:
|
|
- "--context=/workspace/dockercoins/rng"
|
|
- "--skip-tls-verify"
|
|
- "--destination=registry:5000/rng-kaniko:latest"
|
|
volumeMounts:
|
|
- name: workspace
|
|
mountPath: /workspace
|
|
volumes:
|
|
- name: workspace
|
|
|