forked from adobe/rules_gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
47 lines (47 loc) · 1.14 KB
/
deployment.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
spec:
replicas: 1
selector:
matchLabels:
app: helloworld
template:
metadata:
labels:
app: helloworld
app_label_image_short_digest: "{{//helloworld:image.short-digest}}"
spec:
containers:
- name: helloworld
image: //helloworld:image
args:
- --port=8080
ports:
- containerPort: 8080
name: web
resources:
requests:
memory: 2Mi
readinessProbe:
httpGet:
path: /healthz
port: 8080
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP