-
Notifications
You must be signed in to change notification settings - Fork 24
/
vcsim.yaml
78 lines (71 loc) · 1.28 KB
/
vcsim.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
apiVersion: apps/v1
kind: Deployment
metadata:
name: vcsim
spec:
selector:
matchLabels:
app: vcsim
template:
metadata:
labels:
app: vcsim
spec:
containers:
- name: vcsim
image: ko://github.com/vmware-tanzu/sources-for-knative/vendor/github.com/vmware/govmomi/vcsim
args: [
"-l", ":8989"
]
ports:
- name: https
containerPort: 8989
---
apiVersion: v1
kind: Service
metadata:
name: vcsim
spec:
selector:
app: vcsim
ports:
- name: https
port: 443
targetPort: 8989
---
apiVersion: v1
kind: Secret
metadata:
name: vsphere-credentials
stringData:
username: user
password: pass
---
apiVersion: sources.tanzu.vmware.com/v1alpha1
kind: VSphereBinding
metadata:
name: vcsim-setup
spec:
subject:
apiVersion: batch/v1
kind: Job
selector:
matchLabels:
vcsim: setup
address: https://vcsim.default.svc.cluster.local
skipTLSVerify: true
secretRef:
name: vsphere-credentials
---
apiVersion: sources.tanzu.vmware.com/v1alpha1
kind: VSphereSource
metadata:
name: vcsim
spec:
sink:
uri: https://sockeye.default.mink.knobots.io/
address: https://vcsim.default.svc.cluster.local
skipTLSVerify: true
secretRef:
name: vsphere-credentials
---