mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Add nodeport svc change port
This commit is contained in:
@@ -6,8 +6,8 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- port: 80 # The port the service exposes internally
|
- port: 8080 # The port the service exposes internally
|
||||||
targetPort: 80 # The port on the pods to which this service forwards traffic
|
targetPort: 8080 # The port on the pods to which this service forwards traffic
|
||||||
nodePort: 30989 # The port on each node to access this service (must be between 30000-32767)
|
nodePort: 30989 # The port on each node to access this service (must be between 30000-32767)
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: wordpress # Selector to match your WordPress pods
|
app.kubernetes.io/name: wordpress # Selector to match your WordPress pods
|
||||||
|
|||||||
Reference in New Issue
Block a user