Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
1.2 kB
0
Indexable
Never
---
apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: dev
  name: callrecording-reporting-deployment
spec:
  replicas: 2
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  selector:
    matchLabels:
      app: callrecording-reporting-pod
  template:
    metadata:
      labels:
        app: callrecording-reporting-pod
    spec:
      containers:
        - image: #{DOCKER_REPOSITORY}#:#{DOCKER_REPO_TAG}#
          imagePullPolicy: Always
          name: callrecording-reporting-container
          ports:
            - containerPort: 8080
          resources:
            requests:
              cpu: 1
              memory: 2Gi
          env:
            - name: SPRING_PROFILES_ACTIVE
              value: "dev"
          readinessProbe:
            httpGet:
              path: /cr-reporting/actuator/health
              port: 8080
            initialDelaySeconds: 90
            periodSeconds: 10
            successThreshold: 3
            failureThreshold: 3
          livenessProbe:
            httpGet:
              path: /cr-reporting/actuator/health
              port: 8080
            initialDelaySeconds: 90
            periodSeconds: 30
Leave a Comment