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
master-logs etcd etcd &> log |
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: machineconfiguration.openshift.io/v1 | |
kind: MachineConfig | |
metadata: | |
creationTimestamp: null | |
labels: | |
machineconfiguration.openshift.io/role: master | |
name: 10-master-etcd | |
spec: | |
config: |
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: machineconfiguration.openshift.io/v1 | |
kind: MachineConfig | |
metadata: | |
creationTimestamp: null | |
labels: | |
machineconfiguration.openshift.io/role: master | |
name: 10-atop-monitor | |
spec: | |
config: |
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
mkdir etcd-storage-disk | |
cd $! | |
openshift-install create manifests | |
vi openshift/99_openshift-machineconfig_99-worker-ssh.yaml | |
openshift-install create ignition-configs | |
openshift-install create install-config | |
OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE=$release openshift-installer create cluster --log-level debug |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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 -euo pipefail | |
function log { | |
local msg="$1" | |
echo -e "$\033[32m$(date +'%Y-%m-%d %H:%M:%S') $1 $\033[0;39m" | |
} | |
export KUBECONFIG=$(find $HOME/clusters -name kubeconfig | fzf) |
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
#!/usr/bin/env bash | |
# https://grafana.com/docs/grafana/latest/http_api/auth/#create-api-token | |
GRAFANA_TOKEN="" | |
if [ "$1" = "" ]; then | |
echo "url to prometheus.tar required" | |
exit 1 | |
fi |
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
#!/usr/bin/env bash | |
CLUSTER_DOMAIN_1="uit-nonprod.pka.domain.com" | |
CLUSTER_DOMAIN_2="uit-nonprod.rz.domain.com" | |
NODE_IP="123.123.123.123" | |
init() { | |
if [ -d "$PWD/certs" ]; then | |
echo "$PWD/certs already exists please remove and retry" | |
exit 1 |
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 -euo pipefail | |
NAMESPACE=$1 | |
NAME=$2 | |
IMAGE="${IMAGE:-quay.io/dmace/ditm}" | |
NODE_NAME="$(oc get --namespace $NAMESPACE pods $NAME -o go-template='{{ .spec.nodeName }}')" | |
CONTAINER_ID_URI="$(oc get --namespace $NAMESPACE pods $NAME -o go-template='{{ (index .status.containerStatuses 0).containerID }}')" | |
CONTAINER_ID="${CONTAINER_ID_URI:8}" |
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 | |
export ETCDCTL_API=3 | |
./etcdctl --cert ./etcd-client.crt --cacert ./etcd-ca-bundle.crt \ | |
--key ./etcd-client.key \ | |
--endpoints https://10.0.130.58:2379,https://10.0.138.124:2379,https://10.0.151.168:2379 $1 |