We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07a7e0 commit 5f9d392Copy full SHA for 5f9d392
app/deployment.yaml
@@ -0,0 +1,26 @@
1
+apiVersion: apps/v1beta1
2
+kind: Deployment
3
+metadata:
4
+ name: training-deployment
5
+spec:
6
+ replicas: 1
7
+ selector:
8
+ matchLabels:
9
+ app: training
10
+ template:
11
+ metadata:
12
+ labels:
13
14
+ spec:
15
+ containers:
16
+ - name: training
17
+ image: training:v1
18
+ imagePullPolicy: IfNotPresent
19
+ livenessProbe:
20
+ httpGet:
21
+ path: /healthz
22
+ port: 3000
23
+ initialDelaySeconds: 30
24
+ timeoutSeconds: 1
25
+ ports:
26
+ - containerPort: 3000
app/service.yaml
@@ -0,0 +1,11 @@
+kind: Service
+apiVersion: v1
+ name: training-service
+ - port: 3000
+ protocol: TCP
+ type: NodePort
0 commit comments