diff --git a/deployment.yaml b/deployment.yaml index 1313878..59cad93 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1,362 +1,67 @@ -# yudao-gateway +# base-server apiVersion: apps/v1 kind: Deployment metadata: namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-gateway + name: base-server labels: - app: yudao-gateway + app: base-server + annotations: + version: "VERSION_PLACEHOLDER" + description: DESC_PLACEHOLDER + rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" spec: replicas: 1 selector: matchLabels: - app: yudao-gateway + app: base-server template: metadata: labels: - app: yudao-gateway + app: base-server spec: containers: - - name: yudao-gateway - image: 172.16.46.66:10043/yudao/yudao-gateway:VERSION_PLACEHOLDER - imagePullPolicy: Always - env: - - name: TZ - value: Asia/Shanghai - ports: - - containerPort: 48080 + - name: base-server + image: 172.16.46.66:10043/yudao/base-server:VERSION_PLACEHOLDER + readinessProbe: + httpGet: + path: /actuator/health + port: 48100 + initialDelaySeconds: 10 + periodSeconds: 5 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /actuator/health + port: 48100 + initialDelaySeconds: 30 + periodSeconds: 10 + failureThreshold: 5 + resources: + requests: + cpu: "1000m" + memory: "1024Mi" + limits: + cpu: "1000m" + memory: "2048Mi" + terminationGracePeriodSeconds: 30 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 --- apiVersion: v1 kind: Service metadata: namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-gateway + name: base-server spec: type: NodePort selector: - app: yudao-gateway - ports: - - protocol: TCP - port: 48080 - targetPort: 48080 - nodePort: 30081 ---- -# yudao-module-infra -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-infra - labels: - app: yudao-module-infra - annotations: - version: "VERSION_PLACEHOLDER" - description: DESC_PLACEHOLDER - rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" -spec: - replicas: 1 - selector: - matchLabels: - app: yudao-module-infra - template: - metadata: - labels: - app: yudao-module-infra - spec: - containers: - - name: yudao-module-infra - image: 172.16.46.66:10043/yudao/yudao-module-infra:VERSION_PLACEHOLDER - imagePullPolicy: Always - env: - - name: TZ - value: Asia/Shanghai - readinessProbe: - httpGet: - path: /actuator/health - port: 48082 - initialDelaySeconds: 10 - periodSeconds: 5 - failureThreshold: 3 - livenessProbe: - httpGet: - path: /actuator/health - port: 48082 - initialDelaySeconds: 30 - periodSeconds: 10 - failureThreshold: 5 - terminationGracePeriodSeconds: 30 - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 ---- -apiVersion: v1 -kind: Service -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-infra -spec: - type: ClusterIP - selector: - app: yudao-module-infra - ports: - - protocol: TCP - port: 48082 - targetPort: 48082 ---- -# yudao-module-system -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-system - labels: - app: yudao-module-system - annotations: - version: "VERSION_PLACEHOLDER" - description: DESC_PLACEHOLDER - rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" -spec: - replicas: 1 - selector: - matchLabels: - app: yudao-module-system - template: - metadata: - labels: - app: yudao-module-system - spec: - containers: - - name: yudao-module-system - image: 172.16.46.66:10043/yudao/yudao-module-system:VERSION_PLACEHOLDER - imagePullPolicy: Always - env: - - name: TZ - value: Asia/Shanghai - readinessProbe: - httpGet: - path: /actuator/health - port: 48081 - initialDelaySeconds: 10 - periodSeconds: 5 - failureThreshold: 3 - livenessProbe: - httpGet: - path: /actuator/health - port: 48081 - initialDelaySeconds: 30 - periodSeconds: 10 - failureThreshold: 5 - terminationGracePeriodSeconds: 30 - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 ---- -apiVersion: v1 -kind: Service -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-system -spec: - type: ClusterIP - selector: - app: yudao-module-system - ports: - - protocol: TCP - port: 48081 - targetPort: 48081 ---- -# yudao-module-bpm -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-bpm - labels: - app: yudao-module-bpm - annotations: - version: "VERSION_PLACEHOLDER" - description: DESC_PLACEHOLDER - rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" -spec: - replicas: 1 - selector: - matchLabels: - app: yudao-module-bpm - template: - metadata: - labels: - app: yudao-module-bpm - spec: - containers: - - name: yudao-module-bpm - image: 172.16.46.66:10043/yudao/yudao-module-bpm:VERSION_PLACEHOLDER - imagePullPolicy: Always - env: - - name: TZ - value: Asia/Shanghai - readinessProbe: - httpGet: - path: /actuator/health - port: 48083 - initialDelaySeconds: 10 - periodSeconds: 5 - failureThreshold: 3 - livenessProbe: - httpGet: - path: /actuator/health - port: 48083 - initialDelaySeconds: 30 - periodSeconds: 10 - failureThreshold: 5 - terminationGracePeriodSeconds: 30 - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 ---- -apiVersion: v1 -kind: Service -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-bpm -spec: - type: ClusterIP - selector: - app: yudao-module-bpm - ports: - - protocol: TCP - port: 48083 - targetPort: 48083 ---- -# yudao-module-report -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-report - labels: - app: yudao-module-report - annotations: - version: "VERSION_PLACEHOLDER" - description: DESC_PLACEHOLDER - rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" -spec: - replicas: 1 - selector: - matchLabels: - app: yudao-module-report - template: - metadata: - labels: - app: yudao-module-report - spec: - containers: - - name: yudao-module-report - image: 172.16.46.66:10043/yudao/yudao-module-report:VERSION_PLACEHOLDER - imagePullPolicy: Always - env: - - name: TZ - value: Asia/Shanghai - readinessProbe: - httpGet: - path: /actuator/health - port: 48084 - initialDelaySeconds: 10 - periodSeconds: 5 - failureThreshold: 3 - livenessProbe: - httpGet: - path: /actuator/health - port: 48084 - initialDelaySeconds: 30 - periodSeconds: 10 - failureThreshold: 5 - terminationGracePeriodSeconds: 30 - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 ---- -apiVersion: v1 -kind: Service -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-report -spec: - type: ClusterIP - selector: - app: yudao-module-report - ports: - - protocol: TCP - port: 48084 - targetPort: 48084 ---- -# yudao-module-template -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-template - labels: - app: yudao-module-template - annotations: - version: "VERSION_PLACEHOLDER" - description: DESC_PLACEHOLDER - rollout.kubernetes.io/change-cause: "DESC_PLACEHOLDER:VERSION_PLACEHOLDER" -spec: - replicas: 1 - selector: - matchLabels: - app: yudao-module-template - template: - metadata: - labels: - app: yudao-module-template - spec: - containers: - - name: yudao-module-template - image: 172.16.46.66:10043/yudao/yudao-module-template:VERSION_PLACEHOLDER - imagePullPolicy: Always - env: - - name: TZ - value: Asia/Shanghai - readinessProbe: - httpGet: - path: /actuator/health - port: 48100 - initialDelaySeconds: 10 - periodSeconds: 5 - failureThreshold: 3 - livenessProbe: - httpGet: - path: /actuator/health - port: 48100 - initialDelaySeconds: 30 - periodSeconds: 10 - failureThreshold: 5 - terminationGracePeriodSeconds: 30 - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 ---- -apiVersion: v1 -kind: Service -metadata: - namespace: ns-f16a3067ca7b434aad127d15eac82503 - name: yudao-module-template -spec: - type: ClusterIP - selector: - app: yudao-module-template + app: base-server ports: - protocol: TCP port: 48100 targetPort: 48100 + nodePort: 30097