commands-depl.yaml 543 B

12345678910111213141516171819202122232425262728293031
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: commands-depl
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app: commandservice
  10. template:
  11. metadata:
  12. labels:
  13. app: commandservice
  14. spec:
  15. containers:
  16. - name: commandservice
  17. image: nathanattkniat/commandservice:latest
  18. ---
  19. apiVersion: v1
  20. kind: Service
  21. metadata:
  22. name: commands-clusterip-srv
  23. spec:
  24. type: ClusterIP
  25. selector:
  26. app: commandservice
  27. ports:
  28. - name: commandservice
  29. protocol: TCP
  30. port: 80
  31. targetPort: 80