Last active
April 5, 2023 09:50
-
-
Save ralvares/1b60e9a9a10cf542f811cabc69809db5 to your computer and use it in GitHub Desktop.
adding kubernetes ask/esk instance to acs
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
4 simple steps | |
- Create namespace | |
- Create secret ( it is required ) | |
- Generate cluster-init-bundle. | |
- Install secured-cluster using helm. | |
# Create namespace and Pull-Secret from cloud.redhat.com | |
kubectl create namespace stackrox | |
# Download the pull-secret from cloud.redhat.com and save it as pull-secret.json | |
kubectl create secret generic pull-secret -n stackrox --from-file=.dockerconfigjson=pull-secret.json --type=kubernetes.io/dockerconfigjson | |
# Generating an init bundle by using the roxctl CLI. | |
export ROX_API_TOKEN=<api_token> | |
export ROX_CENTRAL_ADDRESS=<central>:443 | |
roxctl -e “$ROX_CENTRAL_ADDRESS” \ | |
central init-bundles generate eks-cluster \ | |
--output cluster_init_bundle.yaml | |
# Install secured-cluster | |
helm repo add rhacs https://mirror.openshift.com/pub/rhacs/charts/ | |
helm install --create-namespace -n stackrox stackrox-secured-cluster-services rhacs/stackrox-secured-cluster-services \ | |
-f cluster_init_bundle.yaml \ | |
--set clusterName=“eks-cluster” \ | |
--set imagePullSecrets.useExisting=pull-secret \ | |
--set centralEndpoint=${ROX_CENTRAL_ADDRESS}:443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment