-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinstall.yml
79 lines (79 loc) · 1.62 KB
/
install.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: v1
kind: Service
metadata:
labels:
name: exampleserver
name: exampleserver
spec:
ports:
- name: "9527"
port: 9527
targetPort: 9527
- name: "9528"
port: 9528
targetPort: 9528
- name: "9529"
port: 9529
targetPort: 9529
selector:
name: exampleserver
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: exampleserver
name: exampleserver
spec:
replicas: 1
selector:
matchLabels:
name: exampleserver
strategy: {}
template:
metadata:
labels:
appName: exampleserver
name: exampleserver
runEnv: dev
spec:
containers:
- command:
- /app/exampleserver
- --config
- etcdv3://etcd:2379/juno-agent/cluster/exampleserver/dev/static/config-dev.toml
image: ghcr.io/douyu/exampleserver-dev:latest
name: exampleserver
ports:
- containerPort: 9527
- containerPort: 9528
- containerPort: 9529
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
restartPolicy: Always
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: hello
spec:
jobTemplate:
spec:
template:
spec:
containers:
- command:
- /bin/sh
- -c
- curl http://exampleserver:9527/v1/helloworld.Greeter/SayHello/bob
image: curlimages/curl:7.88.1
imagePullPolicy: IfNotPresent
name: hello
restartPolicy: OnFailure
ttlSecondsAfterFinished: 100
schedule: '* * * * *'