Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: localhost
- tasks:
- - name: Create a k8s namespace
- k8s:
- name: testing
- api_version: v1
- kind: Namespace
- state: present
- - name: Create a Service object from an inline definition
- k8s:
- state: present
- definition:
- apiVersion: v1
- kind: Service
- metadata:
- name: web
- namespace: testing
- labels:
- app: galaxy
- service: web
- spec:
- selector:
- app: galaxy
- service: web
- ports:
- - protocol: TCP
- targetPort: 80
- name: port-80-tcp
- port: 80
- - name: Deploy Tumtum
- k8s:
- state: present
- src: ./tutum.yaml
Add Comment
Please, Sign In to add comment