apiVersion: v1 kind: Service metadata: name: wedding-fe-prod-svc namespace: apps spec: type: NodePort selector: app: wedding-fe-prod ports: - name: http nodePort: 31010 port: 80 targetPort: 80 --- apiVersion: apps/v1 kind: Deployment metadata: name: wedding-fe-prod namespace: apps spec: replicas: 2 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate selector: matchLabels: app: wedding-fe-prod template: metadata: labels: app: wedding-fe-prod delpoymentDate: "{{replaceMe}}" spec: containers: - name: wedding-fe-prod image: 192.168.195.195:30000/wedding-fe:prod imagePullPolicy: Always ports: - name: http containerPort: 80 readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 5 periodSeconds: 5 successThreshold: 1