about summary refs log tree commit diff
path: root/example/some-api/some-api.yaml
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-02-08T10·55+0100
committerVincent Ambo <tazjin@gmail.com>2017-02-08T10·55+0100
commit8fac7c1a415d6ea5e41c28f4e7ab5c1ef0883997 (patch)
tree260ba1c9e7056d97e6e8e41d5c76c8ada183e2ed /example/some-api/some-api.yaml
parent8fb24f9f750c4d87f1f36f11ca80f86c78832be6 (diff)
chore: Better example & gofmt
Diffstat (limited to 'example/some-api/some-api.yaml')
-rw-r--r--example/some-api/some-api.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/example/some-api/some-api.yaml b/example/some-api/some-api.yaml
new file mode 100644
index 000000000000..6f6a29a1599a
--- /dev/null
+++ b/example/some-api/some-api.yaml
@@ -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