apiVersion: apps/v1
kind: Deployment
metadata:
  name: go-hello-cloud-code
spec:
  replicas: 1
  selector:
    matchLabels:
      app: go-hello-cloud-code
  template:
    metadata:
      labels:
        app: go-hello-cloud-code
    spec:
      containers:
        - name: go-hello-cloud-code
          image: go-hello-cloud-code
          ports:
            - containerPort: 8080
          livenessProbe:
            httpGet:
              path: /health
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 5
            periodSeconds: 15
            timeoutSeconds: 5
          readinessProbe:
            httpGet:
              path: /readiness
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 5
            timeoutSeconds: 1
