platforms-depl.yaml 624 B

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