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
| alias ec='ETCDCTL_API=3 etcdctl --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/peer.crt --key=/etc/kubernetes/pki/etcd/peer.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
| kubectl run snmp-notifier --image=docker.io/maxwo/snmp-notifier \ | |
| --port=9464 --expose \ | |
| --env="SNMP_DESTINATION=127.0.0.1:162" \ | |
| --env="SNMP_DESCRIPTION_TEMPLATE=/etc/snmp_notifier/description-template.tpl" \ | |
| -- '--snmp.trap-description-template=$(SNMP_DESCRIPTION_TEMPLATE)' \ | |
| '--snmp.destination=$(SNMP_DESTINATION)' |
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
| oc get pods -o=go-template --template='{{range .items}}{{if eq .status.phase "Running"}}{{range .status.containerStatuses}}{{.imageID}}{{printf "\n"}}{{end}}{{end}}{{end}}' |
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
| export USERNAME= | |
| export TOKEN= | |
| oc get is -o yaml -n openshift > original-is.yaml | |
| oc create secret -n openshift docker-registry rh-registry \ | |
| --docker-username=${USERNAME} \ | |
| --docker-password=${TOKEN} \ | |
| --docker-server=registry.redhat.io | |
| oc create -f /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/x86_64/image-streams/image-streams-rhel7.json -n openshift | |
| oc create -f /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/x86_64/image-streams/dotnet_imagestreams.json -n openshift | |
| oc create -f /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/x86_64/xpaas-streams -n openshift |
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/sh | |
| ######## MODIFY THE FOLLOWING TO SUIT YOUR TESTS #################### | |
| export MAX_SVC=3 | |
| export POD_PORT=9376 | |
| export IMAGE=gcr.io/google_containers/serve_hostname:1.3 | |
| ################# NO MODIFICATION AFTER THIS LINE ################### | |
| # TO DELETE RESOURCES CREATED BY THIS SCRIPT, RUN: |
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: Service | |
| metadata: | |
| name: hostnames | |
| spec: | |
| type: NodePort | |
| ports: | |
| - port: 9376 | |
| protocol: TCP | |
| nodePort: 31111 |
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
| echo | openssl s_client -connect <HOST>:<PORT> 2>/dev/null | openssl x509 -noout -dates |
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
| openshift3/apb-base | |
| openshift3/apb-tools | |
| openshift3/automation-broker-apb | |
| openshift3/csi-attacher | |
| openshift3/csi-driver-registrar | |
| openshift3/csi-livenessprobe | |
| openshift3/csi-provisioner | |
| openshift3/grafana | |
| openshift3/local-storage-provisioner | |
| openshift3/manila-provisioner |
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 | |
| # | |
| # script usage: satellite_sync_openshift_images.sh <-o ORGANIZATION> <-u RH_REGISTRY_USERNAME> <-p RH_REGISTRY_PASSWORD> <IMAGEFILE> | |
| # | |
| # Instructions to get credentials can be found here: https://access.redhat.com/articles/3399531 | |
| # | |
| # Example: | |
| # ./satellite_sync_openshift_images.sh -o rhconsulting -u 'abcdefg|id' -p 'dcsdj....jsndcsod' images.311 | |
| # |
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
| ldapsearch -x -H "ldap://<ldaphost>" -b "cn=groups,cn=accounts,dc=xxx,dc=internal - basedn" -D "uid=ocp.app,cn=users,cn=accounts,dc=xxx,dc=internal -w password -s sub "(objectclass=posixgroup)" |