apiVersion: apps/v1
kind: Deployment
metadata:
  name: uranus-frontend
spec:
  selector:
    matchLabels:
      app: uranus-frontend
  replicas: 1
  template:
    metadata:
      labels:
        app: uranus-frontend
    spec:
      containers:
        - name: uranus-frontend
          image: registry.cn-hongkong.aliyuncs.com/houhou/uranus-frontend-hk:{TAG}
          imagePullPolicy: IfNotPresent
          env:
            - name: CONFIG_ENV
              value: prod
          ports:
            - containerPort: 9000
              protocol: TCP
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /favicon.ico
              port: 9000
              scheme: HTTP
            initialDelaySeconds: 5
            periodSeconds: 5
            successThreshold: 1
            timeoutSeconds: 5
          livenessProbe:
            failureThreshold: 3
            httpGet:
              path: /favicon.ico
              port: 9000
              scheme: HTTP
            initialDelaySeconds: 5
            periodSeconds: 30
            successThreshold: 1
            timeoutSeconds: 5
          resources:
            limits:
              cpu: 800m
              memory: 500Mi
            requests:
              cpu: 30m
              memory: 300Mi
