Untitled

 avatar
unknown
plain_text
3 years ago
1.3 kB
5
Indexable
apiVersion: apps/v1
kind: Deployment
metadata:
  name: shipserv-backend-id
spec:
  replicas: 8
  selector:
    matchLabels:
      app: shipserv-backend-id
  template:
    metadata:
      labels:
        app: shipserv-backend-id
    spec:
      containers:
        - name: shipserv-backend-id
          image: shipserv.azurecr.io/azdevops-backend-id-prod
          ports:
          - containerPort: 80
          envFrom:
          - configMapRef:
              name: backend-id
          resources:
            limits:
              cpu: '1.4'
              memory: 2024Mi
            requests:
              cpu: 1
              memory: 2024Mi
          livenessProbe:
            httpGet:
              path: "/actuator/health"
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 100
            timeoutSeconds: 1
            periodSeconds: 10
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            httpGet:
              path: "/actuator/health"
              port: 8080
              scheme: HTTP
            timeoutSeconds: 1
            periodSeconds: 10
            successThreshold: 1
            failureThreshold: 3
          terminationMessagePath: "/dev/termination-log"
          terminationMessagePolicy: File
          imagePullPolicy: IfNotPresent
Editor is loading...