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: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: etcd-backup | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
spec: | |
template: |
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: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: etcd-backup | |
spec: | |
schedule: "0 0 * * *" | |
jobTemplate: | |
spec: | |
template: |
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 | |
DEVICE=${1:-eth0} | |
BR_NAME=br-pub | |
ipv4_transfer=( | |
method | |
dns | |
addresses | |
gateway |
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 -xe | |
SNOWBALL_IP='192.168.1.240' | |
S3="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8443 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt s3" | |
EC2="aws --profile snowballEdge --region snow --endpoint https://${SNOWBALL_IP}:8243 --ca-bundle /etc/pki/ca-trust/source/anchors/sbe.crt ec2" | |
BUCKET="redhat-dan" | |
IGN_CONFIGS='/home/danclark/openshift_clusters/snow/' | |
IGN_BASE='/home/danclark/openshift_clusters/install-config.yaml' |
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 -x | |
QUAY_NAMESPACE='quay-enterprise' | |
CLAIR_POSTGRES_POD=$(oc get -n ${QUAY_NAMESPACE} pods | grep clair-postgres | awk -F\ '{print $1}') | |
echo "POD: ${CLAIR_POSTGRES_POD}" | |
oc rsh -n ${QUAY_NAMESPACE} ${CLAIR_POSTGRES_POD} /bin/sh -c "pg_dump -U postgres -a -t feature -t keyvalue -t namespace -t schema_migrations -t vulnerability -t vulnerability_fixedin_feature clair" > clair_vulnerability.sql |
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 | |
WORKING_DIR=/tmp/ | |
QUAY_NAMESPACE='quay-enterprise' | |
S3BUCKET='' | |
ACCESS_KEY='' | |
SECRET_KEY='' | |
mkdir -p "${WORKING_DIR}" | |
pushd "${WORKING_DIR}" |
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 -xe | |
REGISTRY="registry.caas.cia.ic.gov:5000" | |
# Read in the new chrony.conf file | |
ICSP_B64=$(cat ./icsp.conf | sed "s|registry.example.com|${REGISTRY}|g" | base64 -w 0) | |
# Create a machine config to set the private registry for master nodes | |
rm -f ./99_master-private-registry-configuration.yaml | |
cat << EOF > ./99_master-private-registry-configuration.yaml |
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 -xe | |
RHCOS_VERSION="4.5.6" | |
RHCOS_TMP="/tmp" | |
S3_BUCKET="mybucket" | |
# Change to the temporary directory | |
pushd "${RHCOS_TMP}" | |
# NOTE: Uncomment the curl command if you need to download the disk |
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 -xe | |
export OCP_RELEASE="4.5.4" | |
export ARCHITECTURE="x86_64" | |
export LOCAL_REG='localhost:5000' | |
export LOCAL_REPO='ocp4/openshift4' | |
export LOCAL_REG_INSEC='true' | |
export UPSTREAM_REPO='openshift-release-dev' | |
export OCP_ARCH="x86_64" | |
# Directory where OCP images are written to or read from | |
# When mirroring to disk |
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
FROM registry.redhat.io/ubi8/go-toolset:latest AS build | |
ENV DISTRIBUTION_DIR /opt/app-root/src/go/src/github.com/docker/distribution | |
ENV BUILDTAGS include_oss include_gcs | |
ENV GOPATH /opt/app-root/src/go | |
ENV GOBIN /usr/lib/golang/bin | |
ARG GOOS=linux | |
ARG GOARCH=s390x |