Skip to content

Commit

Permalink
Add external-dns hostname to rudolf-service
Browse files Browse the repository at this point in the history
External loadbalancer to be removed, replaced with and merged into gateway gradually
  • Loading branch information
eseiker committed Oct 31, 2024
1 parent 3cb15ae commit 0e98548
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions 9c-internal/multiplanetary/network/9c-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ rudolfService:
roleArn: "arn:aws:iam::319679068466:role/InternalRudolfSignerRole"
service:
enabled: true
hostname: odin-internal-rudolf.9c.gg
securityGroupIds:
- "sg-0c865006315f5b9f0"
- "sg-0343e5c4514681670"
Expand Down
1 change: 1 addition & 0 deletions 9c-internal/multiplanetary/network/heimdall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ rudolfService:

service:
enabled: true
hostname: heimdall-internal-rudolf.9c.gg
securityGroupIds:
- "sg-0c865006315f5b9f0"
- "sg-0343e5c4514681670"
Expand Down
1 change: 1 addition & 0 deletions 9c-internal/multiplanetary/network/thor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ rudolfService:

service:
enabled: true
hostname: thor-internal-rudolf.9c.gg
securityGroupIds:
- "sg-0c865006315f5b9f0"
- "sg-0343e5c4514681670"
Expand Down
1 change: 1 addition & 0 deletions 9c-main/multiplanetary/network/9c-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ rudolfService:

service:
enabled: true
hostname: odin-rudolf.9c.gg
securityGroupIds:
- "sg-0f0bf654f2ff02289"
- "sg-033602a010bce902e"
Expand Down
1 change: 1 addition & 0 deletions 9c-main/multiplanetary/network/heimdall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ rudolfService:

service:
enabled: true
hostname: heimdall-rudolf.9c.gg
securityGroupIds:
- "sg-0f0bf654f2ff02289"
- "sg-033602a010bce902e"
Expand Down
12 changes: 8 additions & 4 deletions charts/all-in-one/templates/rudolf-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,20 @@ metadata:
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
{{- with $.Values.global.service.annotations }}
{{ $_ := unset . "service.beta.kubernetes.io/aws-load-balancer-scheme" }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.rudolfService.service.public }}
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
{{- end }}
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip"
{{- if .Values.rudolfService.service.securityGroupIds }}
service.beta.kubernetes.io/aws-load-balancer-security-groups: {{ join "," .Values.rudolfService.service.securityGroupIds }}
{{- end }}
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-2:319679068466:certificate/2481ac9e-2037-4331-9234-4b3f86d50ad3
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-type: external
{{- with .Values.rudolfService.service.hostname }}
external-dns.alpha.kubernetes.io/hostname: {{ . }}
external-dns.alpha.kubernetes.io/ttl: '60'
{{- end }}
spec:
externalTrafficPolicy: Local
type: LoadBalancer
Expand Down
4 changes: 4 additions & 0 deletions charts/all-in-one/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@
"public": {
"type": "boolean",
"description": "Expose the service to the public."
},
"hostname": {
"type": "string",
"description": "Hostname assigned to the service to sync with externalDNS."
}
},
"additionalProperties": false,
Expand Down

0 comments on commit 0e98548

Please sign in to comment.