-
Notifications
You must be signed in to change notification settings - Fork 8
/
connector-dep.yml
54 lines (54 loc) · 1.65 KB
/
connector-dep.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: vcenter-connector
namespace: openfaas
labels:
app: vcenter
component: vcenter-connector
spec:
replicas: 1
selector:
matchLabels:
app: vcenter
component: vcenter-connector
template:
metadata:
labels:
app: vcenter
component: vcenter-connector
spec:
containers:
- name: vcenter
image: openfaas/vcenter-connector:0.4.0
command: ["./connector"]
args: ["-vcenter", "http://vcsim.openfaas:8989", "-vc-user-secret-name", "vcenter-username", "-vc-pass-secret-name", "vcenter-password", "-insecure", "-gateway", "http://gateway.openfaas:8080"]
# To remove basic-authentication, remove the volumes and mounts from this file
env:
- name: basic_auth
value: "true"
- name: secret_mount_path
value: "/var/openfaas/secrets/"
volumeMounts:
- name: auth-secrets-projected
readOnly: true
mountPath: "/var/openfaas/secrets/"
volumes:
- name: auth-secrets-projected
projected:
defaultMode: 420
sources:
- secret:
items:
- key: basic-auth-user
path: basic-auth-user
- key: basic-auth-password
path: basic-auth-password
name: basic-auth
- secret:
items:
- key: vcenter-username
path: vcenter-username
- key: vcenter-password
path: vcenter-password
name: vcenter-secrets