Skip to content

Instantly share code, notes, and snippets.

View relyt0925's full-sized avatar

Tyler Lisowski relyt0925

View GitHub Profile
apiVersion: v1
kind: Namespace
metadata:
name: tyler-vm
---
apiVersion: v1
kind: Service
metadata:
name: app-1
namespace: tyler-vm
apiVersion: v1
kind: Namespace
metadata:
name: tyler-vm
---
apiVersion: v1
kind: Service
metadata:
name: app-1
namespace: tyler-vm
@relyt0925
relyt0925 / proxy.pac
Created September 6, 2022 15:38
proxy.pac
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;
};
#!/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
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
},
apiVersion: operator.openshift.io/v1
kind: DNS
metadata:
name: default
spec:
nodePlacement: {}
servers:
- forwardPlugin:
upstreams:
- 172.21.53.31
apiVersion: v1
kind: List
metadata:
name: custom-dns
items:
- apiVersion: v1
kind: Namespace
metadata:
name: custom-dns
- apiVersion: v1
@relyt0925
relyt0925 / my-on-prem-application-17146-customdns-entry.yaml
Last active June 6, 2022 03:34
my-on-prem-application-17146-customdns-entry.yaml
apiVersion: v1
kind: Namespace
metadata:
name: custom-dns
---
apiVersion: v1
kind: Service
metadata:
name: my-on-prem-application-17146
namespace: custom-dns
@relyt0925
relyt0925 / test-private-registry-pull-ds.yaml
Last active April 27, 2021 02:21
test-private-registry-pull-ds.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: test-private-registry-pull-ds
spec:
selector:
matchLabels:
name: test-private-registry-pull-ds
template:
metadata:
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