---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: using-gin
  name: using-gin
spec:
  revisionHistoryLimit: 5
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
  selector:
    matchLabels:
      app: using-gin
  template:
    metadata:
      labels:
        app: using-gin
    spec:
      imagePullSecrets:
      - name: regcred
      containers:
      - name: natural-history-museum
        image: 192.168.15.15:5001/using-gin:1.3-arm64
        ports:
        - containerPort: 8080
        imagePullPolicy: Always
        envFrom:
        - configMapRef:
            name: using-gin
        livenessProbe:
          initialDelaySeconds: 20
          httpGet:
            port: 8080
            path: /status
            scheme: HTTP
          timeoutSeconds: 3
        readinessProbe:
          initialDelaySeconds: 10
          httpGet:
            port: 8080
            path: /status
            scheme: HTTP
          timeoutSeconds: 3
        resources:
          limits:
            cpu: 500m
            memory: 512Mi
          requests:
            cpu: 250m
            memory: 256Mi


