chore: Better example & gofmt
This commit is contained in:
parent
8fb24f9f75
commit
8fac7c1a41
6 changed files with 42 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"context": "k8s.prod.mydomain.com",
|
||||
"global": {
|
||||
"globalTest": "lizards"
|
||||
"globalVar": "lizards"
|
||||
},
|
||||
"include": [
|
||||
{
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
name: foo
|
||||
importantFeature: {{ .importantFeature }}
|
||||
port: {{ .apiPort }}
|
||||
globalTest: {{ .globalTest }}
|
34
example/some-api/some-api.yaml
Normal file
34
example/some-api/some-api.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue