kubernetes/contrib/git-sync/demo/config/pod.yaml
2015-02-05 17:11:44 -08:00

51 lines
1.1 KiB
YAML

id: blog-pod
kind: Pod
apiVersion: v1beta1
desiredState:
manifest:
version: v1beta1
containers:
- name: git-sync
image: proppy/git-sync
imagePullPolicy: PullAlways
env:
- name: GIT_SYNC_REPO
value: https://github.com/GoogleCloudPlatform/kubernetes.git
- name: GIT_SYNC_DEST
value: /git
volumeMounts:
- name: markdown
mountPath: /git
- name: hugo
image: proppy/hugo
imagePullPolicy: PullAlways
env:
- name: HUGO_SRC
value: /src/contrib/git-sync/demo/blog
- name: HUGO_BUILD_DRAFT
value: 'true'
- name: HUGO_BASE_URL
value: example.com
volumeMounts:
- name: markdown
mountPath: /src
- name: html
mountPath: /dest
- name: nginx
image: nginx
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html
ports:
- name: http-server
containerPort: 80
volumes:
- name: markdown
source:
emptyDir: {}
- name: html
source:
emptyDir: {}
labels:
name: blog