Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. apiVersion: apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: nodeplatform-deployment
  5. spec:
  6. replicas: 2
  7. template:
  8. metadata:
  9. labels: # labels to select/identify the deployment
  10. app: hello-world
  11. spec: # pod spec
  12. containers:
  13. - name: nodeplatform
  14. image: rampro/nodejs-helloworld
  15. ports:
  16. - containerPort: 3000
  17. ---
  18. apiVersion: v1
  19. kind: Service
  20. metadata:
  21. name: nodeplatform-service
  22. spec:
  23. selector:
  24. app: hello-world
  25. # spec: # pod spec
  26. type: LoadBalancer
  27. ports:
  28. - port: 8080
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement