Files
k8scd/mbgwp/local-svc.yaml
Ruben Hensen ec2fe53785 rm blog
2025-03-29 19:58:36 +01:00

14 lines
565 B
YAML

apiVersion: v1
kind: Service
metadata:
name: wordpress-external
spec:
type: NodePort
ports:
- port: 8080 # The port the service exposes internally
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)
selector:
app.kubernetes.io/name: wordpress # Selector to match your WordPress pods
app.kubernetes.io/instance: mbgwp-helm # This might need adjustment based on your helm release