apiVersion: apps/v1 kind: Deployment metadata: name: roadbed-iot-vmp-vmanager-api namespace: kube-qa labels: app: roadbed-iot-vmp-vmanager-api spec: replicas: 1 selector: matchLabels: app: roadbed-iot-vmp-vmanager-api strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: roadbed-iot-vmp-vmanager-api spec: containers: - name: roadbed-iot-vmp-vmanager-api image: ${REGISTRY}/${IMAGE_NAMESPACE}/${IMAGE_NAME}:${tag} imagePullPolicy: Always ports: - name: web containerPort: 80 protocol: TCP - name: sip containerPort: 5061 env: - name: TZ value: Asia/Shanghai - name: SPRING_PROFILES_ACTIVE value: road readinessProbe: initialDelaySeconds: 20 periodSeconds: 10 timeoutSeconds: 10 httpGet: scheme: HTTP port: 80 path: /actuator/health resources: limits: cpu: 2000m memory: 1024Gi requests: cpu: 100m memory: 512Mi volumes: - name: data-volume persistentVolumeClaim: claimName: zhslzy-pvc-nfs dnsPolicy: ClusterFirst imagePullSecrets: - name: ch-aliyun-registry restartPolicy: Always securityContext: { } terminationGracePeriodSeconds: 30 --- apiVersion: v1 kind: Service metadata: name: roadbed-iot-vmp-vmanager-api namespace: kube-qa labels: name: roadbed-iot-vmp-vmanager-api spec: selector: app: roadbed-iot-vmp-vmanager-api type: NodePort ports: - name: web port: 80 targetPort: web protocol: TCP - name: sip port: 5061 targetPort: sip protocol: TCP nodePort: 5061