kind: Deployment apiVersion: apps/v1 metadata: name: gateway namespace: huoranmicro labels: app: gateway version: v1 spec: replicas: 1 selector: matchLabels: app: gateway version: v1 template: metadata: labels: app: gateway version: v1 spec: containers: - name: gateway image: $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$TAG_NAME ports: - containerPort: 8080 protocol: TCP resources: limits: cpu: 1000m memory: 1000Mi requests: cpu: 100m memory: 100Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 serviceName: gateway podManagementPolicy: OrderedReady updateStrategy: type: RollingUpdate rollingUpdate: partition: 0 revisionHistoryLimit: 10 --- kind: Service apiVersion: v1 metadata: name: gateway namespace: huoranmicro labels: app: gateway version: v1 spec: ports: - name: http protocol: TCP port: 8080 targetPort: 8080 nodePort: 20001 selector: app: gateway type: NodePort sessionAffinity: None