Skip to content

Commit

Permalink
Create nodeport for the service
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjith-ka committed Mar 26, 2024
1 parent 1ff9384 commit fc4db72
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions charts/dev/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ spec:
targetPort: http
protocol: TCP
name: http
nodePort: 30171
selector:
{{- include "dev.selectorLabels" . | nindent 4 }}
2 changes: 1 addition & 1 deletion charts/dev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ securityContext:
# runAsUser: 1000

service:
type: ClusterIP
type: NodePort
port: 8080

ingress:
Expand Down
2 changes: 2 additions & 0 deletions kind/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ nodes:
hostPort: 27017
- containerPort: 31699
hostPort: 9092
- containerPort: 30171
hostPort: 8080
image: kindest/node:v1.27.1@sha256:b7d12ed662b873bd8510879c1846e87c7e676a79fefc93e17b2a52989d3ff42b
6 changes: 3 additions & 3 deletions minikube/kuma/cp.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### To enable Egress
# egress:
# enabled: true
egress:
enabled: true
controlPlane:
mode: zone ## To setup control plane as global
zone: zone-1 ## To setup control plane as zone
Expand All @@ -9,4 +9,4 @@ controlPlane:
kdsZoneClient:
skipVerify: true
ingress:
enabled: true
enabled: true
6 changes: 4 additions & 2 deletions minikube/kuma/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# enabled: true
controlPlane:
mode: global ## To setup control plane as global
service:
type: LoadBalancer
ingress:
enabled: true
enabled: false
ingressClassName: dev-nginx
hostname: kuma.example.com
annotations:
Expand All @@ -21,4 +23,4 @@ controlPlane:
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
path: /
globalZoneSyncService:
type: ClusterIP
type: LoadBalancer
2 changes: 1 addition & 1 deletion minikube/metallb/ipaddresspool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: metallb-system
spec:
addresses:
- 172.18.0.3-172.18.0.10
- 172.18.0.0/16
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
Expand Down

0 comments on commit fc4db72

Please sign in to comment.