Добавлены services и statefulset
This commit is contained in:
parent
fd21b566f1
commit
c1ce0dcb2d
6 changed files with 102 additions and 0 deletions
16
02-service/service-node-port.yaml
Normal file
16
02-service/service-node-port.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nginx-srv
|
||||
labels:
|
||||
app: &app nginx
|
||||
spec:
|
||||
selector:
|
||||
app: *app
|
||||
type: NodePort
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
nodePort: 31337
|
||||
name: http
|
||||
Loading…
Add table
Add a link
Reference in a new issue