-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-test.yml
46 lines (46 loc) · 952 Bytes
/
k8s-test.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
apiVersion: v1
kind: Service
metadata:
name: SERVICE_NAME_HERE
labels:
app: SERVICE_NAME_HERE
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
selector:
app: SERVICE_NAME_HERE
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: SERVICE_NAME_HERE
labels:
app: SERVICE_NAME_HERE
spec:
replicas: 1
selector:
matchLabels:
app: SERVICE_NAME_HERE
template:
metadata:
labels:
app: SERVICE_NAME_HERE
spec:
containers:
- name: SERVICE_NAME_HERE
image: SERVER_IMAGE_TAG_HERE
ports:
- containerPort: 8080
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 500m
memory: 1Gi
args:
- --spring.datasource.url=jdbc:mysql://192.168.177.239:3306/video
- --spring.datasource.username=richinfo
- --spring.datasource.password=3>8d)6F6Ai