diff --git a/dev-upgrade/sevice-group/auth.yaml b/dev-upgrade/sevice-group/auth.yaml new file mode 100644 index 0000000..50378a8 --- /dev/null +++ b/dev-upgrade/sevice-group/auth.yaml @@ -0,0 +1,68 @@ +# 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 \ No newline at end of file diff --git a/dev-upgrade/sevice-group/batch.yaml b/dev-upgrade/sevice-group/batch.yaml new file mode 100644 index 0000000..9183efc --- /dev/null +++ b/dev-upgrade/sevice-group/batch.yaml @@ -0,0 +1,131 @@ +# apiVersion: v1 +# kind: ConfigMap +# metadata: +# name: batch-command +# data: + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: batch-command +spec: + replicas: 1 + selector: + matchLabels: + app: batch-command + template: + metadata: + labels: + app: batch-command + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: batch-command + image: beaconfireiic/batch-command:1.1.0-cn + 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: "batch-command" + - 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/batch-command +--- +apiVersion: v1 +kind: Service +metadata: + name: batch-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: batch-command + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: batch-query +spec: + replicas: 1 + selector: + matchLabels: + app: batch-query + template: + metadata: + labels: + app: batch-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: batch-query + image: beaconfireiic/batch-query:1.1.0-cn + 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: "batch-query" + - 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/batch-query +--- +apiVersion: v1 +kind: Service +metadata: + name: batch-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: batch-query \ No newline at end of file diff --git a/dev-upgrade/sevice-group/company.yaml b/dev-upgrade/sevice-group/company.yaml new file mode 100644 index 0000000..8eb219f --- /dev/null +++ b/dev-upgrade/sevice-group/company.yaml @@ -0,0 +1,125 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: company-command +spec: + replicas: 1 + selector: + matchLabels: + app: company-command + template: + metadata: + labels: + app: company-command + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: company-command + image: beaconfireiic/company-command:1.1.0-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: "company-command" + - 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/company-command +--- +apiVersion: v1 +kind: Service +metadata: + name: company-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: company-command + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: company-query +spec: + replicas: 1 + selector: + matchLabels: + app: company-query + template: + metadata: + labels: + app: company-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: company-query + image: beaconfireiic/company-query:1.1.0-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: "company-query" + - 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/company-query +--- +apiVersion: v1 +kind: Service +metadata: + name: company-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: company-query \ No newline at end of file diff --git a/dev-upgrade/sevice-group/config-server.yaml b/dev-upgrade/sevice-group/config-server.yaml new file mode 100644 index 0000000..6a607e4 --- /dev/null +++ b/dev-upgrade/sevice-group/config-server.yaml @@ -0,0 +1,107 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: config-server +data: + application.yml: | + server: + port: 8080 + spring: + cloud: + config: + server: + git: + uri: https://github.com/beaconfire-projects/cloud-config.git + search-paths: + - '{application}' + - micro/* + username: zyu@beaconfireinc.com + password: ENC(5/I4EP0HwkLv/ZFigX3bmP+U/yR0HAOgWpbVg4tHuREz0G9CfOZzZfFTHA342PpoLYVkj924iqo=) + bus: + refresh: + enabled: true + trace: + enabled: true + stream: + kafka: + binder: + brokers: http://kafka-0-internal:9092,http://kafka-1-internal:9092, http://kafka-2-internal:9092 + + jasypt: + encryptor: + algorithm: PBEWithMD5AndDES + iv-generator-classname: org.jasypt.iv.NoIvGenerator + + management: + endpoints: + web: + exposure: + include: 'busrefresh' #refresh + + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: config-server +spec: + replicas: 1 + selector: + matchLabels: + app: config-server + template: + metadata: + labels: + app: config-server + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: config-server + image: beaconfireiic/config-server: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: "config-server" + volumeMounts: + - name: config + mountPath: /app/application.yml + subPath: application.yml + - name: app-logs + mountPath: /logs + resources: + requests: + cpu: 0.1 + memory: 256Mi + limits: + cpu: 1 + memory: 2Gi + volumes: + - name: config + configMap: + name: config-server + - name: app-logs + hostPath: + path: /data/app_logs/config-server +--- +apiVersion: v1 +kind: Service +metadata: + name: config-server +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: config-server \ No newline at end of file diff --git a/dev-upgrade/sevice-group/discover-service.yaml b/dev-upgrade/sevice-group/discover-service.yaml new file mode 100644 index 0000000..c0990c1 --- /dev/null +++ b/dev-upgrade/sevice-group/discover-service.yaml @@ -0,0 +1,137 @@ +# apiVersion: v1 +# kind: ConfigMap +# metadata: +# name: discovery-service +# data: + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: discovery-service +spec: + replicas: 1 + selector: + matchLabels: + app: discovery-service + template: + metadata: + labels: + app: discovery-service + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: discovery-service + image: beaconfireiic/service-discovery:1.1.0 + imagePullPolicy: Always + ports: + - name: http + containerPort: 8080 + protocol: TCP + env: + - name: "LOGGING_LEVEL_ROOT" + value: "info" + - name: "EUREKA_INSTANCE_HOSTNAME" + value: "discovery-service" + - name: "SERVER_PORT" + value: "8080" + - name: "LOG_APP-NAME" + value: "discovery-service" + - name: "SPRING_PROFILES_ACTIVE" + value: "sdet" + 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/discovery-service +--- +apiVersion: v1 +kind: Service +metadata: + name: discovery-service +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: discovery-service + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: gateway +spec: + replicas: 1 + selector: + matchLabels: + app: gateway + template: + metadata: + labels: + app: gateway + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: gateway + image: beaconfireiic/gateway:1.1.0 + imagePullPolicy: Always + ports: + - name: http + containerPort: 8080 + protocol: TCP + env: + - name: "LOGGING_LEVEL_ROOT" + value: "info" + - name: "EUREKA_INSTANCE_HOSTNAME" + value: "discovery-service" + - name: "SERVER_PORT" + value: "8080" + - name: "EUREKA_CLIENT_SERVICE-URL_DEFAULT-ZONE" + value: "http://discovery-service:8080/eureka/" + - name: "LOG_APP-NAME" + value: "gateway" + - name: "SPRING_PROFILES_ACTIVE" + value: "sdet" + 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/gateway +--- +apiVersion: v1 +kind: Service +metadata: + name: gateway +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: gateway \ No newline at end of file diff --git a/dev-upgrade/sevice-group/email.yaml b/dev-upgrade/sevice-group/email.yaml new file mode 100644 index 0000000..7c2f5c6 --- /dev/null +++ b/dev-upgrade/sevice-group/email.yaml @@ -0,0 +1,62 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: email-query +spec: + replicas: 1 + selector: + matchLabels: + app: email-query + template: + metadata: + labels: + app: email-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: email-query + image: beaconfireiic/email-query:1.1.0-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: "email-query" + - 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/email-query +--- +apiVersion: v1 +kind: Service +metadata: + name: email-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: email-query diff --git a/dev-upgrade/sevice-group/kpi.yaml b/dev-upgrade/sevice-group/kpi.yaml new file mode 100644 index 0000000..cdd7ae7 --- /dev/null +++ b/dev-upgrade/sevice-group/kpi.yaml @@ -0,0 +1,125 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kpi-command +spec: + replicas: 1 + selector: + matchLabels: + app: kpi-command + template: + metadata: + labels: + app: kpi-command + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: kpi-command + image: beaconfireiic/kpi-command:1.1.0-cn + 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: "kpi-command" + - 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/kpi-command +--- +apiVersion: v1 +kind: Service +metadata: + name: kpi-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: kpi-command + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kpi-query +spec: + replicas: 1 + selector: + matchLabels: + app: kpi-query + template: + metadata: + labels: + app: kpi-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: kpi-query + image: beaconfireiic/kpi-query:1.1.0-cn + 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: "kpi-query" + - 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/kpi-query +--- +apiVersion: v1 +kind: Service +metadata: + name: kpi-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: kpi-query \ No newline at end of file diff --git a/dev-upgrade/sevice-group/question.yaml b/dev-upgrade/sevice-group/question.yaml new file mode 100644 index 0000000..abf8cae --- /dev/null +++ b/dev-upgrade/sevice-group/question.yaml @@ -0,0 +1,125 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: question-command +spec: + replicas: 1 + selector: + matchLabels: + app: question-command + template: + metadata: + labels: + app: question-command + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: question-command + image: beaconfireiic/question-command:1.1.0-cn + 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: "question-command" + - 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/question-command +--- +apiVersion: v1 +kind: Service +metadata: + name: question-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: question-command + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: question-query +spec: + replicas: 1 + selector: + matchLabels: + app: question-query + template: + metadata: + labels: + app: question-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: question-query + image: beaconfireiic/question-query:1.1.0-cn + 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: "question-query" + - 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/question-query +--- +apiVersion: v1 +kind: Service +metadata: + name: question-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: question-query \ No newline at end of file diff --git a/dev-upgrade/sevice-group/subscription.yaml b/dev-upgrade/sevice-group/subscription.yaml new file mode 100644 index 0000000..d05cef8 --- /dev/null +++ b/dev-upgrade/sevice-group/subscription.yaml @@ -0,0 +1,125 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: subscription-command +spec: + replicas: 1 + selector: + matchLabels: + app: subscription-command + template: + metadata: + labels: + app: subscription-command + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: subscription-command + image: beaconfireiic/subscription-command: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: "subscription-command" + - 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/subscription-command +--- +apiVersion: v1 +kind: Service +metadata: + name: subscription-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: subscription-command + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: subscription-query +spec: + replicas: 1 + selector: + matchLabels: + app: subscription-query + template: + metadata: + labels: + app: subscription-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: subscription-query + image: beaconfireiic/subscription-query: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: "subscription-query" + - 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/subscription-query +--- +apiVersion: v1 +kind: Service +metadata: + name: subscription-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: subscription-query \ No newline at end of file diff --git a/dev-upgrade/sevice-group/summary.yaml b/dev-upgrade/sevice-group/summary.yaml new file mode 100644 index 0000000..010f4cf --- /dev/null +++ b/dev-upgrade/sevice-group/summary.yaml @@ -0,0 +1,62 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: summary-query +spec: + replicas: 1 + selector: + matchLabels: + app: summary-query + template: + metadata: + labels: + app: summary-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: summary-query + image: beaconfireiic/summary-query:1.1.0-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: "summary-query" + - 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/summary-query +--- +apiVersion: v1 +kind: Service +metadata: + name: summary-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: summary-query diff --git a/dev-upgrade/sevice-group/user.yaml b/dev-upgrade/sevice-group/user.yaml new file mode 100644 index 0000000..d067394 --- /dev/null +++ b/dev-upgrade/sevice-group/user.yaml @@ -0,0 +1,125 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: user-query +spec: + replicas: 1 + selector: + matchLabels: + app: user-query + template: + metadata: + labels: + app: user-query + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: user-query + image: beaconfireiic/user-query:1.1.0-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: "user-query" + - 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/user-query +--- +apiVersion: v1 +kind: Service +metadata: + name: user-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: user-query + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: user-command +spec: + replicas: 1 + selector: + matchLabels: + app: user-command + template: + metadata: + labels: + app: user-command + spec: + imagePullSecrets: + - name: docker-regcred + containers: + - name: user-command + image: beaconfireiic/user-command:1.1.0-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: "user-command" + - 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/user-command +--- +apiVersion: v1 +kind: Service +metadata: + name: user-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: user-command \ No newline at end of file