kind: Deployment apiVersion: apps/v1 metadata: name: nakadai namespace: huoranmicro labels: app: nakadai version: v1 spec: replicas: 1 selector: matchLabels: app: nakadai version: v1 template: metadata: labels: app: nakadai version: v1 spec: containers: - name: nakadai 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: nakadai podManagementPolicy: OrderedReady updateStrategy: type: RollingUpdate rollingUpdate: partition: 0 revisionHistoryLimit: 10 --- kind: Service apiVersion: v1 metadata: name: nakadai namespace: huoranmicro labels: app: nakadai version: v1 spec: ports: - name: http protocol: TCP port: 8080 targetPort: 8080 nodePort: 20002 selector: app: nakadai type: NodePort sessionAffinity: None