apiVersion: v1 kind: ConfigMap metadata: name: admin-console data: application.yml: | spring: application: name: admin-console 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: admin-console spec: replicas: 1 selector: matchLabels: app: admin-console template: metadata: labels: app: admin-console spec: imagePullSecrets: - name: deploy-regcred containers: - name: admin-console image: beaconfireiic/admin-console:1.0.0-prod 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: "admin-console" - 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: admin-console - name: app-logs hostPath: path: /data/app_logs/admin-console --- apiVersion: v1 kind: Service metadata: name: admin-console spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: admin-console