--- apiVersion: apps/v1 kind: Deployment metadata: name: question-command spec: replicas: 1 selector: matchLabels: app: question-command template: metadata: labels: app: question-command spec: imagePullSecrets: - name: deploy-regcred containers: - name: question-command image: beaconfireiic/question-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: "question-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/question-command --- apiVersion: v1 kind: Service metadata: name: question-command spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: question-command --- apiVersion: apps/v1 kind: Deployment metadata: name: question-query spec: replicas: 1 selector: matchLabels: app: question-query template: metadata: labels: app: question-query spec: imagePullSecrets: - name: deploy-regcred containers: - name: question-query image: beaconfireiic/question-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: "question-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/question-query --- apiVersion: v1 kind: Service metadata: name: question-query spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: question-query