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/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: {}

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
    securityContext:
      runAsUser: 0
    volumeMounts:
    - name: markdown
      mountPath: /src
    - name: html
      mountPath: /dest
    env:
    - name: HUGO_SRC
      value: /src/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: {}

Add runAsUser to demo example
Add runAsUser to demo example

Fixes #32