Adding Failover Location to other PDP Cluster Location#131
Open
HLeighOZ wants to merge 1 commit into
Open
Conversation
In order to provide location based PDP to PD assignment - with failover to 2nd Cluster - locations objects need to be configured with failover
| # Attempt to configure Locations using $Location = this location ; $PDP_LOC2 = secondary - preferred falover location. | ||
| # Add 2ndary location - from ENV Var provided - could be derived from (K8S_CLUSTERS | replace K8S_CLUSTER "") | ||
| dsconfig create-location \ | ||
| --location-name "${PD_LOC2}" --set "preferred-failover-location:${LOCATION}" |
Contributor
There was a problem hiding this comment.
Thanks for opening this!
We should add a env_vars file to this profile that provides a default value for PD_LOC2 so that this profile can work when it isn't explicitly set. For example, you can see the env_vars file we use in our baseline profile here - https://github.com/pingidentity/pingidentity-server-profiles/blob/master/baseline/pingdirectory/env_vars
| --set enabled:true \ | ||
| --set base-dn:dc=example,dc=com | ||
|
|
||
| # Attempt to configure Locations using $Location = this location ; $PDP_LOC2 = secondary - preferred falover location. |
Contributor
There was a problem hiding this comment.
Typo - "falover"
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In order to provide location based PDP to PD assignment - with failover to 2nd Cluster - locations objects need to be configured with failover.
This dsconfig will require the 2nd Cluster name to be parsed into an ENV VAR - either via hook script, provided in deployment - or parsed in HELM chart from K8S_CLUSTERS - removing "this" cluster ?