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
--- | |
all: | |
children: | |
OSEv3: | |
children: | |
nodes: | |
children: | |
masters: | |
hosts: | |
openshift-master-[0:2].{{ public_hosted_zone }} |
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
--- | |
- name: Deploy oVirt template and virtual machines | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
tasks: | |
- name: Build vm list | |
import_role: | |
name: openshift_rhv | |
tasks_from: build_vm_list |
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
# First check the IPs referred to by the application DNS entry | |
$ host pacman.apps.e2e.bos.redhat.com | |
pacman.apps.e2e.bos.redhat.com has address 10.19.114.198 | |
pacman.apps.e2e.bos.redhat.com has address 10.19.114.123 | |
pacman.apps.e2e.bos.redhat.com has address 10.29.124.37 | |
pacman.apps.e2e.bos.redhat.com has address 10.19.227.154 | |
# Create federated ingress and ingressplacement objects: | |
$ cat federatedingress.yaml | |
--- |
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
--- | |
- name: Backup federation control plane on master cluster | |
hosts: federation | |
tasks: | |
- name: Read CRDs | |
command: | |
argv: | |
- oc | |
- --context={{federation_context}} | |
- get |
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 | |
openshift_tag=`curl -s https://api.github.com/repos/openshift/installer/releases | grep -oP '"tag_name": "\K(.*)(?=")' | head -n 1` | |
current_tag=$(~/bin/openshift-install version | grep -oE 'v[0-9.]+') | |
if [[ "$openshift_tag" != "$current_tag" ]] | |
then | |
echo "Downloading new copy, available $openshift_tag differs from installed $current_tag" | |
cd /tmp | |
wget --quiet https://github.com/openshift/installer/releases/download/${openshift_tag}/openshift-install-linux-amd64 | |
chmod +x openshift-install-linux-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
#!/bin/bash | |
# This script adds Velero/Restic labels to a pod according to the pod's | |
# current volume set (filtering to only persistentVolumeClaims) | |
# According to https://heptio.github.io/velero/v0.11.0/restic | |
# TODO: Make this script produce help if options are not given | |
# Currently it just assumes you mean to annotate a NooBaa server pod | |
# Usage: | |
# annotate-pod.sh namespace pod | |
# | |
NS=${1:-noobaa} |
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 | |
set -e | |
# Fill in Array of openshift contexts | |
declare -a CONTEXTS | |
CONTEXTS=($(oc config get-contexts -o name)) | |
# Check for three clusters | |
if [ ${#CONTEXTS[@]} != 3 ] | |
then |
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
Oct-14 18:55:32.238 [BGWorkers/32] [L0] core.server.bg_services.agent_blocks_reclaimer:: AGENT_BLOCKS_RECLAIMER: BEGIN | |
::ffff:10.131.0.1 - - [14/Oct/2019:18:55:35 +0000] "GET /fe/ HTTP/1.1" 200 507 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36" | |
::ffff:10.131.0.1 - - [14/Oct/2019:18:55:35 +0000] "GET /fe/styles.css HTTP/1.1" 200 - "https://noobaa-mgmt-noobaa.apps.upi.e2e.bos.redhat.com/fe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, lik | |
e Gecko) Chrome/70.0.3538.67 Safari/537.36" | |
::ffff:10.131.0.1 - - [14/Oct/2019:18:55:35 +0000] "GET /fe/preload.js HTTP/1.1" 200 - "https://noobaa-mgmt-noobaa.apps.upi.e2e.bos.redhat.com/fe/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, lik | |
e Gecko) Chrome/70.0.3538.67 Safari/537.36" | |
::ffff:10.131.0.1 - - [14/Oct/2019:18:55:35 +0000] "GET /fe/assets/fonts/roboto/Hgo13k-tfSpn0qi1SFdUfVtXRa8TVwTICgirnJhmVJw.woff2 HTTP/1.1" 200 14524 "https://noobaa-mgmt-noobaa.apps.upi.e2e.bos.redha |
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 | |
kind: Pod | |
metadata: | |
generateName: stress- | |
spec: | |
containers: | |
- name: cpu-demo-ctr | |
image: quay.io/cwilkers/stress-pin | |
resources: | |
limits: |
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 | |
REGISTRY=registry-proxy.engineering.redhat.com | |
true | openssl s_client -showcerts -connect ${REGISTRY}:443 2>/dev/null | openssl x509 > ca.crt | |
oc create configmap registry-cas -n openshift-config --from-file=${REGISTRY}=ca.crt | |
oc patch image.config.openshift.io/cluster --patch '{"spec":{"additionalTrustedCA":{"name":"registry-cas"}}}' --type=merge | |
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"storage":{"emptyDir":{}}}}' | |
oc patch configs.imageregistry.operator.openshift.io cluster --type merge --patch '{"spec":{"managementState":"Managed"}}' |
OlderNewer