Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. ---
  2. apiVersion: extensions/v1beta1
  3. kind: Deployment
  4. metadata:
  5. name: foo-example
  6. namespace: default
  7. spec:
  8. replicas: 2
  9. template:
  10. metadata:
  11. labels:
  12. app: foo-example
  13. spec:
  14. containers:
  15. - name: foo
  16. # NOTE: Make sure to use the name of your $PROJECT here,
  17. # which is what you provided when doing a docker push
  18. image: gcr.io/knative-proj/foo
  19. ports:
  20. - containerPort: 5000
  21. protocol: TCP
  22. env:
  23. - name: TARGET
  24. value: "Old school deployment"
  25. ---
  26. apiVersion: v1
  27. kind: Service
  28. metadata:
  29. labels:
  30. app: foo-example
  31. name: foo-np
  32. namespace: default
  33. spec:
  34. ports:
  35. - port: 8080
  36. protocol: TCP
  37. targetPort: 5000
  38. selector:
  39. app: foo-example
  40. sessionAffinity: None
  41. type: NodePort
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement