-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.yaml
60 lines (60 loc) · 1.26 KB
/
test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: v1
kind: Pod
metadata:
labels:
run: mytest
name: mytest
# namespace: default
spec:
containers:
# args:
# - sleep
# - "3000"
- image: docker.io/nginx:latest
name: mytest
ports:
- containerPort: 80
- containerPort: 8080
- containerPort: 443
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
readinessProbe:
httpGet:
# host: localhost
port: 80
# path: /
# scheme: HTTP
failureThreshold: 99
# periodSeconds: 5
# successThreshold: 1
# timeoutSeconds: 3
# volumeMounts:
# - name: manual-token
# mountPath: "/var/run/secrets/kubernetes.io/serviceaccount"
# readOnly: true
dnsPolicy: Default
restartPolicy: Always
nodeName: mum.systems.richtman.au
# automountServiceAccountToken: false
# volumes:
# - name: manual-token
# projected:
# sources:
# - serviceAccountToken:
# path: "token"
---
apiVersion: v1
kind: Service
metadata:
labels:
run: mytest
name: mytest-svc
namespace: kube-system
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 80
selector:
run: mytest
# type: ClusterIP
type: LoadBalancer