mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 14:29:09 +01:00
Add nodeport svc
This commit is contained in:
1 parent
0583cf9f62
commit
faf844b6bb
1 file changed
+14
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: wordpress-external
|
||||||
|
namespace: mbgwp
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
- port: 80 # The port the service exposes internally
|
||||||
|
targetPort: 80 # 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
|
||||||
Reference in new issue
Block a user