diff --git a/dev-upgrade/sevice-group/admin-console.yml b/dev-upgrade/sevice-group/admin-console.yml new file mode 100644 index 0000000..13e67ce --- /dev/null +++ b/dev-upgrade/sevice-group/admin-console.yml @@ -0,0 +1,62 @@ +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: "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/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 \ No newline at end of file diff --git a/dev-upgrade/sevice-group/auth-middleware.yml b/dev-upgrade/sevice-group/auth-middleware.yml new file mode 100644 index 0000000..facbb84 --- /dev/null +++ b/dev-upgrade/sevice-group/auth-middleware.yml @@ -0,0 +1,62 @@ +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: 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-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 \ No newline at end of file diff --git a/dev-upgrade/sevice-group/auth.yaml b/dev-upgrade/sevice-group/auth.yaml index a59615d..fe45ff2 100644 --- a/dev-upgrade/sevice-group/auth.yaml +++ b/dev-upgrade/sevice-group/auth.yaml @@ -1,10 +1,3 @@ -# apiVersion: v1 -# kind: ConfigMap -# metadata: -# name: auth -# data: - ---- apiVersion: apps/v1 kind: Deployment metadata: diff --git a/dev-upgrade/sevice-group/beaconfire-auth.yml b/dev-upgrade/sevice-group/beaconfire-auth.yml new file mode 100644 index 0000000..9d0ef3a --- /dev/null +++ b/dev-upgrade/sevice-group/beaconfire-auth.yml @@ -0,0 +1,62 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: beaconfire-auth +spec: + replicas: 1 + selector: + matchLabels: + app: beaconfire-auth + template: + metadata: + labels: + app: beaconfire-auth + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: beaconfire-auth + image: beaconfireiic/beaconfire-auth:1.0.0-3-dev + command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.beaconfireauth.BeaconfireAuthApplication"] + 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: "beaconfire-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/beaconfire-auth +--- +apiVersion: v1 +kind: Service +metadata: + name: beaconfire-auth +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: beaconfire-auth \ No newline at end of file diff --git a/dev-upgrade/sevice-group/file-service.yml b/dev-upgrade/sevice-group/file-service.yml new file mode 100644 index 0000000..ee57ccb --- /dev/null +++ b/dev-upgrade/sevice-group/file-service.yml @@ -0,0 +1,62 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: file-service +spec: + replicas: 1 + selector: + matchLabels: + app: file-service + template: + metadata: + labels: + app: file-service + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: file-service + image: beaconfireiic/file-service:1.0.0-prod + command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.fileservice.FileServiceApplication"] + 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: "file-service" + - 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/file-service +--- +apiVersion: v1 +kind: Service +metadata: + name: file-service +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: file-service \ No newline at end of file diff --git a/dev-upgrade/sevice-group/oauth-service.yml b/dev-upgrade/sevice-group/oauth-service.yml new file mode 100644 index 0000000..dfcefb6 --- /dev/null +++ b/dev-upgrade/sevice-group/oauth-service.yml @@ -0,0 +1,62 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: oauth-service +spec: + replicas: 1 + selector: + matchLabels: + app: oauth-service + template: + metadata: + labels: + app: oauth-service + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: oauth-service + image: beaconfireiic/oauth-service:1.0.0-dev + command: ["java", "-Djasypt.encryptor.password=secret", "-cp","app:app/lib/*","com.beaconfire.oauthservice.OauthServiceApplication"] + 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: "oauth-service" + - 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/oauth-service +--- +apiVersion: v1 +kind: Service +metadata: + name: oauth-service +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8080 + targetPort: http + selector: + app: oauth-service \ No newline at end of file