Files
container.training/k8s/nginx-3-with-git.yaml
Jerome Petazzoni ed5009c769 Tweaks after Caen
2020-01-30 14:44:44 -06:00

22 lines
427 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: nginx-with-git
spec:
volumes:
- name: www
containers:
- name: nginx
image: nginx
volumeMounts:
- name: www
mountPath: /usr/share/nginx/html/
- name: git
image: alpine
command: [ "sh", "-c", "apk add git && git clone https://github.com/octocat/Spoon-Knife /www" ]
volumeMounts:
- name: www
mountPath: /www/
restartPolicy: OnFailure