blob: 44b61541744c712998f34beb81f814b33745a782 (
plain) (
blame)
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
|
---
apiVersion: v1
kind: Secret
metadata:
name: secret-certificate
data:
cert.pem: {{ passLookup "my/secret/certificate" | b64enc }}
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: some-api
spec:
replicas: 1
template:
metadata:
labels:
app: some-api
spec:
containers:
- image: my.container.repo/some-api:{{ .version }}
name: some-api
env:
- name: ENABLE_IMPORTANT_FEATURE
value: {{ .importantFeature }}
- name: SOME_GLOBAL_VAR
value: {{ .globalVar }}
- name: FILE_VAR
value: {{ fileContent "some-api/filevar.txt" }}
---
apiVersion: v1
kind: Service
metadata:
name: some-api
labels:
app: some-api
spec:
selector:
app: some-api
ports:
- port: 80
targetPort: {{ .apiPort }}
name: http
|