Skip to content

Commit

Permalink
Merge pull request #179 from bjwswang/main
Browse files Browse the repository at this point in the history
fix: add more host aliases
  • Loading branch information
bjwswang authored Mar 11, 2024
2 parents a9e544a + 018de10 commit 94606d2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/u4a-component/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.6
version: 0.2.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ spec:
labels:
resource-view-controller: controller-manager
spec:
{{- if .Values.resourceView.hostConfig.enabled }}
hostAliases: {{ toYaml .Values.resourceView.hostConfig.hostAliases | nindent 6 }}
{{- end }}
containers:
- image: {{ .Values.registryServer }}/{{ .Values.resourceView.image }}
env:
Expand Down
14 changes: 12 additions & 2 deletions charts/u4a-component/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ oidcServer:
hostAliases:
- hostnames:
- *bffHost
- *hostK8sApiWithOidc
ip: <replaced-ingress-nginx-ip>
# only enable for debug purpose
debug: false
Expand All @@ -111,6 +112,7 @@ bffServer:
hostAliases:
- hostnames:
- *bffHost
- *hostK8sApiWithOidc
ip: <replaced-ingress-nginx-ip>

# Required: the host Kubernetes cluster with OIDC enabled
Expand All @@ -123,6 +125,14 @@ k8s:
resourceView:
enabled: true
image: kubebb/resource-viewer:v0.2.0
# Enable and update the ip if nip.io is NOT accessible in deployed environment
hostConfig:
enabled: true
hostAliases:
- hostnames:
- *bffHost
- *hostK8sApiWithOidc
ip: <replaced-ingress-nginx-ip>

addon-component:
enabled: true
Expand Down Expand Up @@ -151,8 +161,8 @@ addon-component:
enabled: true
hostAliases:
- hostnames:
# MUST update this value
- portal.<replaced-ingress-nginx-ip>.nip.io
- *bffHost
- *hostK8sApiWithOidc
# MUST update this value
ip: <replaced-ingress-nginx-ip>

Expand Down

0 comments on commit 94606d2

Please sign in to comment.