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
var FindProxyForURL = function(init, profiles) { | |
return function(url, host) { | |
"use strict"; | |
var result = init, scheme = url.substr(0, url.indexOf(":")); | |
do { | |
result = profiles[result]; | |
if (typeof result === "function") result = result(url, host, scheme); | |
} while (typeof result !== "string" || result.charCodeAt(0) === 43); | |
return result; | |
}; |
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
#!/usr/bin/env bash | |
yum install squid -y | |
cat <<EOF >/etc/squid/squid.conf | |
# | |
# Recommended minimum configuration: | |
# | |
# Example rule allowing access from your local networks. | |
# Adapt to list your (internal) IP networks from where browsing | |
# should be allowed |
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
APISERVER_ENDPOINT=https://c100-e.us-east.containers.cloud.ibm.com:31581 | |
cat <<EOF >/tmp/sre-csr.json | |
{ | |
"CN": "myorg-sre-1", | |
"hosts": [ | |
], | |
"key": { | |
"algo": "rsa", | |
"size": 2048 | |
}, |
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: operator.openshift.io/v1 | |
kind: DNS | |
metadata: | |
name: default | |
spec: | |
nodePlacement: {} | |
servers: | |
- forwardPlugin: | |
upstreams: | |
- 172.21.53.31 |
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: List | |
metadata: | |
name: custom-dns | |
items: | |
- apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: custom-dns | |
- apiVersion: v1 |
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: Namespace | |
metadata: | |
name: custom-dns | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: my-on-prem-application-17146 | |
namespace: custom-dns |
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: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: test-private-registry-pull-ds | |
spec: | |
selector: | |
matchLabels: | |
name: test-private-registry-pull-ds | |
template: | |
metadata: |
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: ConfigMap | |
metadata: | |
name: registry-configurator | |
data: | |
configure.sh: | | |
#!/usr/bin/env bash | |
set -x | |
#NOTE: based off ubi-minimal can be changed | |
microdnf install util-linux -y |
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: ConfigMap | |
metadata: | |
name: registry-configurator | |
data: | |
configure.sh: | | |
#!/usr/bin/env bash | |
set -x | |
#NOTE: based off ubi-minimal can be changed | |
microdnf install util-linux -y |
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
#!/usr/bin/env bash | |
#Install brew and qemu dependencies | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
brew install qemu | |
brew install jq | |
rm -rf /tmp/rhcosqemu | |
#Download RedHat CoreOS Image and resize primary disk to 30G | |
mkdir -p /tmp/rhcosqemu/image |