-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disaster recovery feature via mongodb replica set (#1311)
## Description The primary and standby cluster MongoDB members are in the same MongoDB replica set. The standby cluster members are configured as hidden, delayed, and with zero priority. When the primary cluster goes down, the standby cluster MongoDB members are promoted to standby state—one of them will become primary by administrator. After the primary is back online, the primary cluster members will be demoted to hidden. For switching back, the primary cluster members will be promoted to secondary MongoDB members and standby cluster members will be demoted. ## Another changes - Upgrade mongodb to v7
- Loading branch information
Showing
43 changed files
with
1,954 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{{- if .Values.global.authorizationCAPool }} | ||
{{- $secretData := include "plgd-hub.resolveTemplateString" (list . .Values.global.extraCAPool.authorization) }} | ||
{{- if $secretData }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.extraAuthorizationCAPool.name }} | ||
name: {{ include "plgd-hub.resolveTemplateString" (list . .Values.extraCAPool.authorization.secretName) }} | ||
namespace: {{ $.Release.Namespace }} | ||
labels: | ||
{{- include "plgd-hub.labels" $ | nindent 4 }} | ||
data: | ||
{{ .Values.extraAuthorizationCAPool.fileName }}: {{ .Values.global.authorizationCAPool | b64enc }} | ||
{{ include "plgd-hub.resolveTemplateString" (list . .Values.extraCAPool.authorization.key) }}: {{ $secretData | b64enc }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- $secretData := include "plgd-hub.resolveTemplateString" (list . .Values.global.extraCAPool.coap) }} | ||
{{- if $secretData }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "plgd-hub.resolveTemplateString" (list . .Values.extraCAPool.coap.secretName) }} | ||
namespace: {{ $.Release.Namespace }} | ||
labels: | ||
{{- include "plgd-hub.labels" $ | nindent 4 }} | ||
data: | ||
{{ include "plgd-hub.resolveTemplateString" (list . .Values.extraCAPool.coap.key) }}: {{ $secretData | b64enc }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- $secretData := include "plgd-hub.resolveTemplateString" (list . .Values.global.extraCAPool.internal) }} | ||
{{- if $secretData }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "plgd-hub.resolveTemplateString" (list . .Values.extraCAPool.internal.secretName) }} | ||
namespace: {{ $.Release.Namespace }} | ||
labels: | ||
{{- include "plgd-hub.labels" $ | nindent 4 }} | ||
data: | ||
{{ include "plgd-hub.resolveTemplateString" (list . .Values.extraCAPool.internal.key) }}: {{ $secretData | b64enc }} | ||
{{- end }} |
Oops, something went wrong.