apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    name: nginx
spec:
  containers:
    - name: nginx
      image: sameersbn/owncloud:10.0.10-0
      args: ["app:nginx"]
      env:
        - name: OWNCLOUD_URL
          value: http://cloud.example.com

        - name: OWNCLOUD_PHP_FPM_HOST
          value: owncloud
        - name: OWNCLOUD_PHP_FPM_PORT
          value: "9000"

      ports:
        - name: http
          containerPort: 80
          protocol: TCP
      livenessProbe:
        httpGet:
          path: /
          port: 80
        initialDelaySeconds: 5
        timeoutSeconds: 1
