apiVersion: v1 kind: ConfigMap metadata: name: auth-middleware data: application.yml: | spring: application: name: auth-middleware 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: auth-middleware spec: replicas: 1 selector: matchLabels: app: auth-middleware template: metadata: labels: app: auth-middleware spec: imagePullSecrets: - name: deploy-regcred containers: - name: auth-middleware image: beaconfireiic/auth-middleware:1.1.0-6-dev command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.authmiddleware.AuthMiddlewareApplication"] 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: "auth-middleware" - 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: auth-middleware - name: app-logs hostPath: path: /data/app_logs/auth-middleware --- apiVersion: v1 kind: Service metadata: name: auth-middleware spec: type: ClusterIP ports: - name: http protocol: TCP port: 8080 targetPort: http selector: app: auth-middleware