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
| apiVersion: platform.stackrox.io/v1alpha1 | |
| kind: Central | |
| metadata: | |
| name: stackrox-central-services | |
| namespace: stackrox | |
| spec: | |
| customize: | |
| envVars: | |
| - name: ROX_EXTERNAL_IPS | |
| value: 'true' |
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
| DOCKER_CONFIG_JSON=`oc extract secret/pull-secret -n openshift-config --to=-` | |
| oc create secret generic multiclusterhub-operator-pull-secret \ | |
| -n open-cluster-management-observability \ | |
| --from-literal=.dockerconfigjson="$DOCKER_CONFIG_JSON" \ | |
| --type=kubernetes.io/dockerconfigjson | |
| ACCESS_KEY="" | |
| SECRET_KEY="" |
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
| if [ $# -eq 0 ] | |
| then | |
| echo "try: $0 payments-v2 frontend backend" | |
| exit 1 | |
| fi | |
| > netpols.yaml | |
| for namespace in $@ | |
| do |
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
| apiVersion: platform.stackrox.io/v1alpha1 | |
| kind: SecuredCluster | |
| metadata: | |
| name: stackrox-secured-cluster-services | |
| namespace: stackrox | |
| spec: | |
| admissionControl: | |
| bypass: BreakGlassAnnotation | |
| contactImageScanners: DoNotScanInline | |
| listenOnCreates: true |
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
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| namespace: stackrox | |
| name: stackrox-image-puller | |
| --- | |
| kind: ClusterRoleBinding | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: stackrox-image-puller-clusterrolebinding |
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
| #!/bin/bash | |
| if [[ -z "${ROX_ENDPOINT}" ]]; then | |
| echo >&2 "ROX_ENDPOINT must be set" | |
| exit 1 | |
| fi | |
| if [[ -z "${ROX_API_TOKEN}" ]]; then | |
| echo >&2 "ROX_API_TOKEN must be set" | |
| exit 1 |
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 |
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
| apiVersion: template.openshift.io/v1 | |
| kind: Template | |
| labels: | |
| template: nfs-client-provisioner | |
| message: 'NFS storage class ${STORAGE_CLASS} created.' | |
| metadata: | |
| annotations: | |
| description: nfs-client-provisioner | |
| openshift.io/display-name: nfs-client-provisioner | |
| openshift.io/provider-display-name: Tiger Team |
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
| ### libvirt lab network ### | |
| cat > /root/lab.xml << EOF | |
| <network connections='8'> | |
| <name>lab</name> | |
| <forward mode='nat'> | |
| <nat> | |
| <port start='1024' end='65535'/> | |
| </nat> | |
| </forward> |
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
| # Updated for OCP 4.11.5 | |
| # https://gist.github.com/ralvares/976dce493b43c498cf781f8b8dff28d3 | |
| ## Download Artifacts | |
| # housekeep old vm if necessary | |
| virsh destroy master-sno | |
| virsh undefine master-sno | |
| ## openshift-client |