Skip to content

Commit

Permalink
fix: bind on dualstack by default
Browse files Browse the repository at this point in the history
both operator and dragonfly, should not hurt.
  • Loading branch information
cyrinux committed Dec 8, 2024
1 parent 040d2ef commit c572750
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions charts/dragonfly-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --secure-listen-address=[::]:8443
- --upstream=http://[::1]:8080/
- --logtostderr=true
- --v=0
image: "{{ .Values.rbacProxy.image.repository }}:{{ .Values.rbacProxy.image.tag }}"
Expand All @@ -55,7 +55,7 @@ spec:
- name: manager
args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --metrics-bind-address=[::1]:8080
- --leader-elect
command:
- /manager
Expand Down
6 changes: 3 additions & 3 deletions config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ spec:
- "ALL"
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.16.0
args:
- "--secure-listen-address=0.0.0.0:8443"
- "--upstream=http://127.0.0.1:8080/"
- "--secure-listen-address=[::]:8443"
- "--upstream=http://[::1]:8080/"
- "--logtostderr=true"
- "--v=0"
ports:
Expand All @@ -51,5 +51,5 @@ spec:
- name: manager
args:
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=127.0.0.1:8080"
- "--metrics-bind-address=[::]:8080"
- "--leader-elect"
2 changes: 2 additions & 0 deletions internal/resources/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ const (
var DefaultDragonflyArgs = []string{
"--alsologtostderr",
"--primary_port_http_enabled=false",
"--bind=::",
"--admin_bind=::",
fmt.Sprintf("--admin_port=%d", DragonflyAdminPort),
"--admin_nopass",
}
6 changes: 3 additions & 3 deletions manifests/dragonfly-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2072,8 +2072,8 @@ spec:
- linux
containers:
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --secure-listen-address=[::]:8443
- --upstream=http://[::1]:8080/
- --logtostderr=true
- --v=0
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.16.0
Expand All @@ -2096,7 +2096,7 @@ spec:
- ALL
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --metrics-bind-address=[::]:8080
- --leader-elect
command:
- /manager
Expand Down

0 comments on commit c572750

Please sign in to comment.