# https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
apiVersion: apps/v1
kind: Deployment
metadata:
  name:  hello
  namespace: default
  labels:
    app:  hello
spec:
  selector:
    matchLabels:
      app: hello
  replicas: 1
  template:
    metadata:
      labels:
        app:  hello
    spec:
      containers:
      - name:  hello
        image:  europe-west1-docker.pkg.dev/gke-event-345118/gke-event/hello:0.1.1
        imagePullPolicy: IfNotPresent
        resources:
          requests:
            cpu: 250m
            memory: 256Mi
          limits:
            cpu: "1"
            memory: 256Mi
        ports:
        - containerPort:  8080
          name:  http
      restartPolicy: Always
# ---
# apiVersion: autoscaling/v1
# kind: HorizontalPodAutoscaler
# metadata:
#   name: hello
# spec:
#   maxReplicas: 15
#   minReplicas: 1
#   scaleTargetRef:
#     apiVersion: apps/v1
#     kind: Deployment
#     name: hello
#   targetCPUUtilizationPercentage: 20