deployment.yaml 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: winsea-product-operation-front
  5. labels:
  6. app: winsea-product-operation-front
  7. spec:
  8. replicas: 1
  9. selector:
  10. matchLabels:
  11. app: winsea-product-operation-front
  12. template:
  13. metadata:
  14. labels:
  15. app: winsea-product-operation-front
  16. spec:
  17. imagePullSecrets:
  18. - name: default
  19. containers:
  20. - image: 172.31.116.91:30657/ws-product-operation-front:${CICD_EXECUTION_SEQUENCE}
  21. name: winsea-product-operation-front
  22. ports:
  23. - containerPort: 80
  24. ---
  25. kind: Service
  26. apiVersion: v1
  27. metadata:
  28. name: winsea-product-operation-front-service
  29. spec:
  30. selector:
  31. app: winsea-product-operation-front
  32. type: ClusterIP
  33. ports:
  34. - protocol: TCP
  35. port: 80
  36. targetPort: 80