forked from Akiranred/pacman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
50 lines (47 loc) · 1.05 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- name: 'Deploying App on Vsphere with Tanzu'
hosts: all
user: root
ignore_errors: yes
tasks:
- name: 'Creating namespace demo-ns'
k8s:
name: demo-ns
api_version: v1
kind: Namespace
state: present
- name: 'Creating pod pacmantags'
k8s:
state: present
definition:
apiVersion: v1
kind: Pod
metadata:
name: pacmantags
namespace: demo-ns
labels:
app: gametags
spec:
containers:
- name: pacmantags
image: harbor.lab39.sunfire.lab/test/test-s:tags
- name: 'Creating service'
k8s:
state: present
definition:
apiVersion: v1
kind: Service
metadata:
name: pacman-service
namespace: demo-ns
labels:
app: gametags
spec:
type: LoadBalancer
selector:
app: gametags
ports:
- protocol: TCP
targetPort: 80
name: pacmanport
port: 80