apiVersion: v1 kind: ConfigMap metadata: name: recruiting-command data: application.yml: | spring: application: name: recruiting-command profiles: active: dev cloud: config: label: main config: import: optional:configserver:http://config-server:8888 springdoc: api-docs: enabled: false --- apiVersion: apps/v1 kind: Deployment metadata: name: recruiting-command spec: replicas: 1 selector: matchLabels: app: recruiting-command template: metadata: labels: app: recruiting-command spec: imagePullSecrets: - name: deploy-regcred containers: - name: recruiting-command image: beaconfireiic/recruiting-command:1.1.0-dev 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: "recruiting-command" - name: "SPRING_PROFILES_ACTIVE" value: "dev" volumeMounts: - name: config mountPath: /app/application.yml subPath: application.yml - name: app-logs mountPath: /logs resources: requests: cpu: 0.1 memory: 128Mi limits: cpu: 1 memory: 2Gi volumes: - name: config configMap: name: recruiting-command - name: app-logs hostPath: path: /data/app_logs/recruiting-command --- apiVersion: v1 kind: Service metadata: name: recruiting-command spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: recruiting-command --- apiVersion: v1 kind: ConfigMap metadata: name: recruiting-query data: application.yml: | spring: application: name: recruiting-query profiles: active: dev cloud: config: label: main config: import: optional:configserver:http://config-server:8888 springdoc: api-docs: enabled: false --- apiVersion: apps/v1 kind: Deployment metadata: name: recruiting-query spec: replicas: 1 selector: matchLabels: app: recruiting-query template: metadata: labels: app: recruiting-query spec: imagePullSecrets: - name: deploy-regcred containers: - name: recruiting-query image: beaconfireiic/recruiting-query:1.1.0-dev 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: "recruiting-query" - name: "SPRING_PROFILES_ACTIVE" value: "dev" volumeMounts: - name: config mountPath: /app/application.yml subPath: application.yml - name: app-logs mountPath: /logs resources: requests: cpu: 0.1 memory: 128Mi limits: cpu: 1 memory: 2Gi volumes: - name: config configMap: name: recruiting-query - name: app-logs hostPath: path: /data/app_logs/recruiting-query --- apiVersion: v1 kind: Service metadata: name: recruiting-query spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: recruiting-query --- apiVersion: v1 kind: ConfigMap metadata: name: recruiting-config data: application.yml: | spring: application: name: recruiting-config profiles: active: dev cloud: config: label: main config: import: optional:configserver:http://config-server:8888 springdoc: api-docs: enabled: false --- apiVersion: apps/v1 kind: Deployment metadata: name: recruiting-config spec: replicas: 1 selector: matchLabels: app: recruiting-config template: metadata: labels: app: recruiting-config spec: imagePullSecrets: - name: deploy-regcred containers: - name: recruiting-config image: beaconfireiic/recruiting-config:1.1.0-dev 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: "recruiting-config" - name: "SPRING_PROFILES_ACTIVE" value: "dev" volumeMounts: - name: config mountPath: /app/application.yml subPath: application.yml - name: app-logs mountPath: /logs resources: requests: cpu: 0.1 memory: 128Mi limits: cpu: 1 memory: 2Gi volumes: - name: config configMap: name: recruiting-config - name: app-logs hostPath: path: /data/app_logs/recruiting-config --- apiVersion: v1 kind: Service metadata: name: recruiting-config spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: recruiting-config