-
Notifications
You must be signed in to change notification settings - Fork 77
/
example-pod.yaml
28 lines (28 loc) · 883 Bytes
/
example-pod.yaml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example-pod
spec:
template:
metadata:
labels:
run: example-pod
# This label indicates the cluster name, and that it should be collected by Rotor.
# It can be customized with `ROTOR_KUBERNETES_CLUSTER_LABEL`
tbn_cluster: <foo>
# This is the stage label, set to prod in order to apply to the release
# workflow.
stage: prod
# This is the version label set to a relevant item.
version: <bar>
spec:
containers:
- image: <example_image>
imagePullPolicy: Always
name: example-pod
ports:
- containerPort: 8080
# This is the where you name your port, which should match the value
# of `ROTOR_KUBERNETES_PORT_NAME`
name: http
protocol: TCP