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