Skip to content

Commit

Permalink
init-ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
kuritka committed Feb 5, 2025
1 parent de740d3 commit 16cbe0a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ deploy-local-cluster:
deploy-test-apps: ## Deploy Podinfo (example app) and Apply Gslb Custom Resources
@echo -e "\n$(YELLOW)Deploy GSLB cr $(NC)"
kubectl apply -f deploy/crds/test-namespace-ingress.yaml
kubectl apply -f deploy/crds/test-ingress-init
$(call apply-cr,deploy/crds/k8gb.absa.oss_v1beta1_gslb_cr_roundrobin_ingress_ref.yaml)
$(call apply-cr,deploy/crds/k8gb.absa.oss_v1beta1_gslb_cr_failover_ingress_ref.yaml)

Expand Down Expand Up @@ -262,7 +263,7 @@ deploy-k8gb-with-helm:
--set k8gb.log.level=$(LOG_LEVEL) \
--set rfc2136.enabled=true \
--set k8gb.edgeDNSServers[0]=$(shell $(CLUSTER_GSLB_GATEWAY)):1053 \
--set coredns.serviceType="LoadBalancer" \
--set k8gb.ingressPath=test-gslb/init-ingress \
--wait --timeout=10m0s

.PHONY: deploy-gslb-operator
Expand Down
7 changes: 3 additions & 4 deletions chart/k8gb/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,16 +301,15 @@
"type": "integer",
"minimum": 0
},
"ingressPath": {
"type": "string",
"minLength": 1
},
"log": {
"$ref": "#/definitions/k8gbLog"
},
"coredns": {
"$ref": "#/definitions/k8gbCoreDNS"
},
"ingressPath": {
"type": "string"
},
"splitBrainCheck": {
"type": "boolean"
},
Expand Down
2 changes: 1 addition & 1 deletion chart/k8gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ k8gb:
# this value defines the ingress path in the format namespace.ingress with exposed IP addresses.
# If coredns.serviceType is set to LoadBalancer, this value is ignored, and the IP addresses are loaded
# directly from the CoreDNS service.
ingressPath: "namesapce/ingress-to-fetch-ips"
ingressPath: "namespace/ingress-to-fetch-ips"
log:
# -- log format (simple,json)
format: simple # log format (simple,json)
Expand Down
21 changes: 21 additions & 0 deletions deploy/crds/test-ingress-init.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This ingress is used to provide IP addresses for the delegation zone. see: Values.k8gb.ingressPath.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
labels:
app: init-ingress
name: init-ingress
namespace: test-gslb
spec:
ingressClassName: nginx
rules:
- host: init.cloud.example.com
http:
paths:
- backend:
service:
name: frontend-podinfo
port:
name: http
path: /
pathType: Prefix

0 comments on commit 16cbe0a

Please sign in to comment.