# apiVersion: v1 # kind: ConfigMap # metadata: # name: batch-command # data: --- apiVersion: apps/v1 kind: Deployment metadata: name: batch-command spec: replicas: 1 selector: matchLabels: app: batch-command template: metadata: labels: app: batch-command spec: imagePullSecrets: - name: docker-regcred containers: - name: batch-command image: beaconfireiic/batch-command:1.1.0-cn 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: "batch-command" - name: "SPRING_PROFILES_ACTIVE" value: "dev" 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/batch-command --- apiVersion: v1 kind: Service metadata: name: batch-command spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: batch-command --- apiVersion: apps/v1 kind: Deployment metadata: name: batch-query spec: replicas: 1 selector: matchLabels: app: batch-query template: metadata: labels: app: batch-query spec: imagePullSecrets: - name: docker-regcred containers: - name: batch-query image: beaconfireiic/batch-query:1.1.0-cn 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: "batch-query" - name: "SPRING_PROFILES_ACTIVE" value: "dev" 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/batch-query --- apiVersion: v1 kind: Service metadata: name: batch-query spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: batch-query