提交用户deployment
This commit is contained in:
13
docker/userService/userServer.yaml
Normal file
13
docker/userService/userServer.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: title
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: title
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
type: NodePort
|
||||||
|
|
||||||
26
docker/userService/userService.yaml
Normal file
26
docker/userService/userService.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: title
|
||||||
|
labels:
|
||||||
|
app: title
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: title
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: title
|
||||||
|
labels:
|
||||||
|
app: title
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: title
|
||||||
|
image: nginx
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
restartPolicy: Always
|
||||||
|
|
||||||
Reference in New Issue
Block a user