--- apiVersion: apps/v1 kind: Deployment metadata: name: kpi-command spec: replicas: 1 selector: matchLabels: app: kpi-command template: metadata: labels: app: kpi-command spec: imagePullSecrets: - name: deploy-regcred containers: - name: kpi-command image: beaconfireiic/kpi-command:1.1.0-sdet imagePullPolicy: Always ports: - name: http containerPort: 8080 protocol: TCP env: - name: "LOGGING_LEVEL_ROOT" value: "info" - name: "SERVER_PORT" value: "8080" - name: "LOG_APP-NAME" value: "kpi-command" - name: "SPRING_PROFILES_ACTIVE" value: "qa" volumeMounts: - name: app-logs mountPath: /logs resources: requests: cpu: 0.1 memory: 128Mi limits: cpu: 1 memory: 2Gi volumes: - name: app-logs hostPath: path: /data/app_logs/kpi-command --- apiVersion: v1 kind: Service metadata: name: kpi-command spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: kpi-command --- apiVersion: apps/v1 kind: Deployment metadata: name: kpi-query spec: replicas: 1 selector: matchLabels: app: kpi-query template: metadata: labels: app: kpi-query spec: imagePullSecrets: - name: deploy-regcred containers: - name: kpi-query image: beaconfireiic/kpi-query:1.1.0-sdet imagePullPolicy: Always ports: - name: http containerPort: 8080 protocol: TCP env: - name: "LOGGING_LEVEL_ROOT" value: "info" - name: "SERVER_PORT" value: "8080" - name: "LOG_APP-NAME" value: "kpi-query" - name: "SPRING_PROFILES_ACTIVE" value: "qa" volumeMounts: - name: app-logs mountPath: /logs resources: requests: cpu: 0.1 memory: 128Mi limits: cpu: 1 memory: 2Gi volumes: - name: app-logs hostPath: path: /data/app_logs/kpi-query --- apiVersion: v1 kind: Service metadata: name: kpi-query spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: kpi-query