mirror of https://github.com/k3s-io/k3s
47 lines
977 B
YAML
47 lines
977 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
labels:
|
|
name: blog
|
|
name: blog-pod
|
|
spec:
|
|
containers:
|
|
- name: git-sync
|
|
image: gcr.io/google_containers/git-sync
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- name: markdown
|
|
mountPath: /git
|
|
env:
|
|
- name: GIT_SYNC_REPO
|
|
value: https://github.com/GoogleCloudPlatform/kubernetes.git
|
|
- name: GIT_SYNC_DEST
|
|
value: /git
|
|
- name: hugo
|
|
image: gcr.io/google_containers/hugo
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- name: markdown
|
|
mountPath: /src
|
|
- name: html
|
|
mountPath: /dest
|
|
env:
|
|
- name: HUGO_SRC
|
|
value: /src/contrib/git-sync/demo/blog
|
|
- name: HUGO_BUILD_DRAFT
|
|
value: "true"
|
|
- name: HUGO_BASE_URL
|
|
value: example.com
|
|
- name: nginx
|
|
image: nginx
|
|
volumeMounts:
|
|
- name: html
|
|
mountPath: /usr/share/nginx/html
|
|
ports:
|
|
- containerPort: 80
|
|
volumes:
|
|
- name: markdown
|
|
emptyDir: {}
|
|
- name: html
|
|
emptyDir: {}
|