diff --git a/datatypes/.DS_Store b/datatypes/.DS_Store new file mode 100644 index 0000000..d3a3c3b Binary files /dev/null and b/datatypes/.DS_Store differ diff --git a/dev-upgrade/argo/argocd-namespace-install.yaml b/dev-upgrade/argo/argocd.yaml similarity index 100% rename from dev-upgrade/argo/argocd-namespace-install.yaml rename to dev-upgrade/argo/argocd.yaml diff --git a/dev-upgrade/argo/argoci-namespace-install-dev.yaml b/dev-upgrade/argo/argoci-dev.yaml similarity index 100% rename from dev-upgrade/argo/argoci-namespace-install-dev.yaml rename to dev-upgrade/argo/argoci-dev.yaml diff --git a/dev-upgrade/argo/argoci-namespace-install-release.yaml b/dev-upgrade/argo/argoci-release.yaml similarity index 100% rename from dev-upgrade/argo/argoci-namespace-install-release.yaml rename to dev-upgrade/argo/argoci-release.yaml diff --git a/dev-upgrade/jenkins/deploy-common.yaml b/dev-upgrade/jenkins/jenkins.yaml similarity index 100% rename from dev-upgrade/jenkins/deploy-common.yaml rename to dev-upgrade/jenkins/jenkins.yaml diff --git a/dev-upgrade/sevice-group/email.yaml b/dev-upgrade/sevice-group/email.yaml index 3e2c2ef..06827ed 100644 --- a/dev-upgrade/sevice-group/email.yaml +++ b/dev-upgrade/sevice-group/email.yaml @@ -60,3 +60,66 @@ spec: targetPort: http selector: app: email-query + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: email-config +spec: + replicas: 1 + selector: + matchLabels: + app: email-config + template: + metadata: + labels: + app: email-config + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: email-query + image: beaconfireiic/email-config:1.1.0-sdet + 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-config +--- +apiVersion: v1 +kind: Service +metadata: + name: email-config +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: email-config diff --git a/dev-upgrade/sevice-group/recruiting.yml b/dev-upgrade/sevice-group/recruiting.yml new file mode 100644 index 0000000..0b7fc3f --- /dev/null +++ b/dev-upgrade/sevice-group/recruiting.yml @@ -0,0 +1,268 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: recruiting-command +data: + application.yml: | + spring: + application: + name: recruiting-command + 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: recruiting-command +spec: + replicas: 1 + selector: + matchLabels: + app: recruiting-command + template: + metadata: + labels: + app: recruiting-command + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: recruiting-command + image: beaconfireiic/recruiting-command:1.1.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: "recruiting-command" + - 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: recruiting-command + - name: app-logs + hostPath: + path: /data/app_logs/recruiting-command +--- +apiVersion: v1 +kind: Service +metadata: + name: recruiting-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: recruiting-command + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: recruiting-query +data: + application.yml: | + spring: + application: + name: recruiting-query + 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: recruiting-query +spec: + replicas: 1 + selector: + matchLabels: + app: recruiting-query + template: + metadata: + labels: + app: recruiting-query + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: recruiting-query + image: beaconfireiic/recruiting-query:1.1.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: "recruiting-query" + - 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: recruiting-query + - name: app-logs + hostPath: + path: /data/app_logs/recruiting-query +--- +apiVersion: v1 +kind: Service +metadata: + name: recruiting-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: recruiting-query + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: recruiting-config +data: + application.yml: | + spring: + application: + name: recruiting-config + 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: recruiting-config +spec: + replicas: 1 + selector: + matchLabels: + app: recruiting-config + template: + metadata: + labels: + app: recruiting-config + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: recruiting-config + image: beaconfireiic/recruiting-config:1.1.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: "recruiting-config" + - 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: recruiting-config + - name: app-logs + hostPath: + path: /data/app_logs/recruiting-config +--- +apiVersion: v1 +kind: Service +metadata: + name: recruiting-config +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: recruiting-config \ No newline at end of file diff --git a/dev-upgrade/sevice-group/timesheet.yaml b/dev-upgrade/sevice-group/timesheet.yaml new file mode 100644 index 0000000..de6631b --- /dev/null +++ b/dev-upgrade/sevice-group/timesheet.yaml @@ -0,0 +1,268 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: time-sheet-command +data: + application.yml: | + spring: + application: + name: time-sheet-command + 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: 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: "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: 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: 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: 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: "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: 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: 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: 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: "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: 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 \ No newline at end of file diff --git a/dev-upgrade/sevice-group_qa/email.yaml b/dev-upgrade/sevice-group_qa/email.yaml index ef9ab13..6dd391d 100644 --- a/dev-upgrade/sevice-group_qa/email.yaml +++ b/dev-upgrade/sevice-group_qa/email.yaml @@ -60,3 +60,67 @@ spec: targetPort: http selector: app: email-query + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: email-config +spec: + replicas: 1 + selector: + matchLabels: + app: email-config + template: + metadata: + labels: + app: email-config + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: email-query + image: beaconfireiic/email-config:1.1.0-sdet + 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: "qa" + 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-config +--- +apiVersion: v1 +kind: Service +metadata: + name: email-config +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: email-config + diff --git a/dev-upgrade/sevice-group_qa/recruiting.yml b/dev-upgrade/sevice-group_qa/recruiting.yml new file mode 100644 index 0000000..dd7682c --- /dev/null +++ b/dev-upgrade/sevice-group_qa/recruiting.yml @@ -0,0 +1,268 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: recruiting-command +data: + application.yml: | + spring: + application: + name: recruiting-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: recruiting-command +spec: + replicas: 1 + selector: + matchLabels: + app: recruiting-command + template: + metadata: + labels: + app: recruiting-command + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: recruiting-command + image: beaconfireiic/recruiting-command:1.1.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: "recruiting-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: recruiting-command + - name: app-logs + hostPath: + path: /data/app_logs/recruiting-command +--- +apiVersion: v1 +kind: Service +metadata: + name: recruiting-command +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: recruiting-command + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: recruiting-query +data: + application.yml: | + spring: + application: + name: recruiting-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: recruiting-query +spec: + replicas: 1 + selector: + matchLabels: + app: recruiting-query + template: + metadata: + labels: + app: recruiting-query + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: recruiting-query + image: beaconfireiic/recruiting-query:1.1.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: "recruiting-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: recruiting-query + - name: app-logs + hostPath: + path: /data/app_logs/recruiting-query +--- +apiVersion: v1 +kind: Service +metadata: + name: recruiting-query +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: recruiting-query + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: recruiting-config +data: + application.yml: | + spring: + application: + name: recruiting-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: recruiting-config +spec: + replicas: 1 + selector: + matchLabels: + app: recruiting-config + template: + metadata: + labels: + app: recruiting-config + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: recruiting-config + image: beaconfireiic/recruiting-config:1.1.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: "recruiting-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: recruiting-config + - name: app-logs + hostPath: + path: /data/app_logs/recruiting-config +--- +apiVersion: v1 +kind: Service +metadata: + name: recruiting-config +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: recruiting-config \ No newline at end of file diff --git a/dev-upgrade/sevice-group_qa/timesheet.yml b/dev-upgrade/sevice-group_qa/timesheet.yml new file mode 100644 index 0000000..a446511 --- /dev/null +++ b/dev-upgrade/sevice-group_qa/timesheet.yml @@ -0,0 +1,268 @@ +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 \ No newline at end of file