17 lines
338 B
YAML
17 lines
338 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: nextcloud-nodeport # nom du service
|
|
labels:
|
|
# app: nextcloud
|
|
# component: app
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80 # port du pods
|
|
nodePort: 30080 # port de la machine locale detenant les noeuds
|
|
selector:
|
|
app: nextcloud
|
|
component: app
|