Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. ---
  2.  
  3. apiVersion: v1
  4. kind: Pod
  5. metadata:
  6. name: helloworld-nginx
  7. labels:
  8. app: helloworld-nginx
  9. spec:
  10. containers:
  11. - name: nginx
  12. image: nginx:1.15
  13. ports:
  14. - containerPort: 80
  15. volumeMounts:
  16. - mountPath: /etc/nginx/conf.d
  17. name: nginx-config
  18. - name: k8s-demo
  19. image: aslaen/k8s-demo
  20. ports:
  21. - containerPort: 3000
  22. volumes:
  23. - name: nginx-config
  24. configMap:
  25. name: nginx-config
  26. items:
  27. - key: reverseproxy.conf
  28. path: reverseproxy.conf
  29.  
  30. ---
  31.  
  32. apiVersion: v1
  33. kind: Service
  34. metadata:
  35. name: helloworld-nginx-service
  36. spec:
  37. selector:
  38. app: helloworld-nginx
  39. type: NodePort
  40. ports:
  41. - port: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement