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
helm repo add netapp-trident https://netapp.github.io/trident-helm-chart | |
helm repo update | |
# Create a namespace for Trident | |
kubectl create namespace trident | |
# Install the Trident operator | |
helm install trident-operator netapp-trident/trident-operator --namespace trident | |
# Create a service account |
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
apiVersion: config.openshift.io/v1 | |
kind: OAuth | |
metadata: | |
name: cluster | |
spec: | |
identityProviders: | |
- name: my_htpasswd_provider | |
mappingMethod: claim | |
type: HTPasswd | |
htpasswd: |
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
apiVersion: v1 | |
baseDomain: sandbox.acme.com | |
compute: | |
- name: worker | |
hyperthreading: Enabled | |
replicas: 0 | |
controlPlane: | |
name: master | |
replicas: 1 | |
architecture: amd64 |
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
podman pull registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8:3.72.1 | |
podman tag registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8:3.72.1 quay.io/wdovey/advanced-cluster-security/rhacs-main-rhel8:3.72.1 | |
podman push --remove-signatures quay.io/wdovey/advanced-cluster-security/rhacs-main-rhel8:3.72.1 | |
podman pull registry.redhat.io/advanced-cluster-security/rhacs-scanner-rhel8:3.72.1 | |
podman tag registry.redhat.io/advanced-cluster-security/rhacs-scanner-rhel8:3.72.1 quay.io/wdovey/advanced-cluster-security/rhacs-scanner-rhel8:3.72.1 | |
podman push --remove-signatures quay.io/wdovey/advanced-cluster-security/rhacs-scanner-rhel8:3.72.1 | |
podman pull registry.redhat.io/advanced-cluster-security/rhacs-scanner-db-rhel8:3.72.1 | |
podman tag registry.redhat.io/advanced-cluster-security/rhacs-scanner-db-rhel8:3.72.1 quay.io/wdovey/advanced-cluster-security/rhacs-scanner-db-rhel8:3.72.1 |
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
# managedclustersetbinding.yaml | |
cat << EOF | oc apply -f - | |
apiVersion: cluster.open-cluster-management.io/v1alpha1 | |
kind: ManagedClusterSetBinding | |
metadata: | |
name: production-clusters | |
namespace: openshift-gitops | |
spec: | |
clusterSet: production-clusters | |
EOF |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: wordpress-mysql | |
labels: | |
app: wordpress | |
spec: | |
selector: | |
matchLabels: | |
app: wordpress |
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
#!/bin/bash | |
_NAMESPACE="nfs-external-provisioner" | |
oc new-project ${_NAMESPACE} | |
oc adm policy add-scc-to-user hostmount-anyuid \ | |
-n ${_NAMESPACE} \ | |
-z nfs-subdir-external-provisioner |
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
<-- cr-main.yaml ---> | |
apiVersion: psmdb.percona.com/v1-10-0 | |
kind: PerconaServerMongoDB | |
metadata: | |
name: sydney-cluster | |
spec: | |
unmanaged: false | |
crVersion: 1.10.0 | |
image: percona/percona-server-mongodb:4.4.6-8 |
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
apiVersion: machine.openshift.io/v1beta1 | |
kind: MachineSet | |
metadata: | |
annotations: | |
machine.openshift.io/GPU: "0" | |
machine.openshift.io/memoryMb: "16384" | |
machine.openshift.io/vCPU: "4" | |
labels: | |
hive.openshift.io/machine-pool: master | |
hive.openshift.io/managed: "true" |
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
oc patch clusterversion/version --type='merge' -p "$(cat <<- EOF | |
spec: | |
overrides: | |
- group: apps/v1 | |
kind: Deployment | |
name: cluster-monitoring-operator | |
namespace: openshift-monitoring | |
unmanaged: true | |
EOF | |
)" |
NewerOlder