apiVersion: v1 kind: ConfigMap metadata: name: time-sheet-command data: application.yml: | spring: application: name: time-sheet-command profiles: active: qa cloud: config: label: main config: import: optional:configserver:http://config-server:8888 springdoc: api-docs: enabled: false --- apiVersion: apps/v1 kind: Deployment metadata: name: time-sheet-command spec: replicas: 1 selector: matchLabels: app: time-sheet-command template: metadata: labels: app: time-sheet-command spec: imagePullSecrets: - name: deploy-regcred containers: - name: time-sheet-command image: beaconfireiic/time-sheet-command:1.0.0-dev command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.adminconsole.AdminConsoleApplication"] 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: "time-sheet-command" - name: "SPRING_PROFILES_ACTIVE" value: "qa" 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: time-sheet-command - name: app-logs hostPath: path: /data/app_logs/time-sheet-command --- apiVersion: v1 kind: Service metadata: name: time-sheet-command spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: time-sheet-command --- apiVersion: v1 kind: ConfigMap metadata: name: time-sheet-query data: application.yml: | spring: application: name: time-sheet-query profiles: active: qa cloud: config: label: main config: import: optional:configserver:http://config-server:8888 springdoc: api-docs: enabled: false --- apiVersion: apps/v1 kind: Deployment metadata: name: time-sheet-query spec: replicas: 1 selector: matchLabels: app: time-sheet-query template: metadata: labels: app: time-sheet-query spec: imagePullSecrets: - name: deploy-regcred containers: - name: time-sheet-query image: beaconfireiic/time-sheet-query:1.0.0-dev command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.adminconsole.AdminConsoleApplication"] 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: "time-sheet-query" - name: "SPRING_PROFILES_ACTIVE" value: "qa" 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: time-sheet-query - name: app-logs hostPath: path: /data/app_logs/time-sheet-query --- apiVersion: v1 kind: Service metadata: name: time-sheet-query spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: time-sheet-query --- apiVersion: v1 kind: ConfigMap metadata: name: time-sheet-config data: application.yml: | spring: application: name: time-sheet-config profiles: active: qa cloud: config: label: main config: import: optional:configserver:http://config-server:8888 springdoc: api-docs: enabled: false --- apiVersion: apps/v1 kind: Deployment metadata: name: time-sheet-config spec: replicas: 1 selector: matchLabels: app: time-sheet-config template: metadata: labels: app: time-sheet-config spec: imagePullSecrets: - name: deploy-regcred containers: - name: time-sheet-config image: beaconfireiic/time-sheet-config:1.0.0-dev command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.adminconsole.AdminConsoleApplication"] 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: "time-sheet-config" - name: "SPRING_PROFILES_ACTIVE" value: "qa" 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: time-sheet-config - name: app-logs hostPath: path: /data/app_logs/time-sheet-config --- apiVersion: v1 kind: Service metadata: name: time-sheet-config spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: time-sheet-config