Guest User

Untitled

a guest
Jul 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. ---
  2. - hosts: localhost
  3. tasks:
  4. - name: Create a k8s namespace
  5. k8s:
  6. name: testing
  7. api_version: v1
  8. kind: Namespace
  9. state: present
  10. - name: Create a Service object from an inline definition
  11. k8s:
  12. state: present
  13. definition:
  14. apiVersion: v1
  15. kind: Service
  16. metadata:
  17. name: web
  18. namespace: testing
  19. labels:
  20. app: galaxy
  21. service: web
  22. spec:
  23. selector:
  24. app: galaxy
  25. service: web
  26. ports:
  27. - protocol: TCP
  28. targetPort: 80
  29. name: port-80-tcp
  30. port: 80
  31. - name: Deploy Tumtum
  32. k8s:
  33. state: present
  34. src: ./tutum.yaml
Add Comment
Please, Sign In to add comment