apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    kustomize.component: basic-auth-ingress
  name: whoami-app
  namespace: kubeflow
spec:
  replicas: 1
  selector:
    matchLabels:
      kustomize.component: basic-auth-ingress
  template:
    metadata:
      labels:
        app: whoami
        kustomize.component: basic-auth-ingress
    spec:
      containers:
      - env:
        - name: PORT
          value: "8081"
        image: gcr.io/cloud-solutions-group/esp-sample-app:1.0.0
        name: app
        ports:
        - containerPort: 8081
        readinessProbe:
          failureThreshold: 2
          httpGet:
            path: /healthz
            port: 8081
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
