2017-02-08 11:55:59 +01:00
|
|
|
---
|
2017-02-09 15:33:03 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: secret-certificate
|
|
|
|
data:
|
2018-03-09 15:17:54 +01:00
|
|
|
cert.pem: {{ passLookup "my/secret/certificate" | b64enc }}
|
2018-03-09 14:49:33 +01:00
|
|
|
---
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: some-config
|
|
|
|
data:
|
|
|
|
# The content of the example configuration file is templated in here
|
|
|
|
# by the 'insertFile' function and indented for YAML-compatibility
|
|
|
|
# with the 'indent' function:
|
|
|
|
some.cfg: |
|
|
|
|
{{ insertFile "some.cfg" | indent 4 }}
|
2017-02-09 15:33:03 +01:00
|
|
|
---
|
2017-02-08 11:55:59 +01:00
|
|
|
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 }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: some-api
|
|
|
|
labels:
|
|
|
|
app: some-api
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: some-api
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: {{ .apiPort }}
|
|
|
|
name: http
|