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
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: notifi | |
namespace: default | |
uid: 6be58be2-a0f4-4b2f-a129-372ace9f814a | |
resourceVersion: '17491934' | |
generation: 4 | |
creationTimestamp: '2021-05-11T11:34:45Z' | |
labels: |
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
POSTGRES_PASSWORD=$(kubectl get secret --namespace default pg-postgresql-ha-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode) | |
db_cmd="kubectl run pg-postgresql-ha-client --rm --tty -i --restart='Never' --overrides='{\"spec\": {\"nodeSelector\": {\"kubernetes.io/arch\": \"amd64\"}}}' --image docker.io/bitnami/postgresql-repmgr:11.10.0-debian-10-r55 --env='PGPASSWORD=$POSTGRES_PASSWORD' --command -- psql -h pg-postgresql-ha-pgpool -p 5432 -U postgres -d postgres" | |
read -p "Database name: " DB_NAME | |
read -p "Username for $DB_NAME: " USERNAME | |
read -p "Password for $USERNAME: " PASSWORD | |
# create pool user for both pools | |
kubectl exec -it $(kubectl get pods -l app.kubernetes.io/component=pgpool,app.kubernetes.io/name=postgresql-ha -o jsonpath='{.items[0].metadata.name}') -- pg_md5 -m --config-file="/opt/bitnami/pgpool/conf/pgpool.conf" -u "$USERNAME" "$PASSWORD" |
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 | |
POSTGRES_PASSWORD=$(kubectl get secret --namespace default pg-postgresql-ha-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode) | |
db_cmd="kubectl run pg-postgresql-ha-client --rm --tty -i --restart='Never' --overrides='{\"spec\": {\"nodeSelector\": {\"kubernetes.io/arch\": \"amd64\"}}}' --image docker.io/bitnami/postgresql-repmgr:11.10.0-debian-10-r55 --env='PGPASSWORD=$POSTGRES_PASSWORD' --command -- psql -h pg-postgresql-ha-pgpool -p 5432 -U postgres -d postgres" | |
read -p "Database name: " DB_NAME | |
read -p "Username for $DB_NAME: " USERNAME | |
read -p "Password for $USERNAME: " PASSWORD |
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
kubectl describe pods redis-redis-cluster-4 | |
Name: redis-redis-cluster-4 | |
Namespace: default | |
Priority: 0 | |
Node: chapel/10.1.0.3 | |
Start Time: Sat, 23 Jan 2021 17:19:38 +0000 | |
Labels: app.kubernetes.io/instance=redis | |
app.kubernetes.io/managed-by=Helm | |
app.kubernetes.io/name=redis-cluster | |
controller-revision-hash=redis-redis-cluster-5fc5f5cf9f |
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
kubectl describe node linode-node2 | |
Name: linode-node2 | |
Roles: <none> | |
Labels: beta.kubernetes.io/arch=amd64 | |
beta.kubernetes.io/instance-type=k3s | |
beta.kubernetes.io/os=linux | |
k3s.io/hostname=linode-node2 | |
k3s.io/internal-ip=10.1.0.7 | |
kubernetes.io/arch=amd64 | |
kubernetes.io/hostname=linode-node2 |
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 | |
# Maximilian Mitchell (max.me.uk) | |
# cron: | |
# 0 * * * * /usr/bin/curl -s https://gist.githubusercontent.com/maxisme/ea9bfe4cfcf5b89494a7a793253b8a60/raw/5Gmonitor.sh | bash | |
# requirements: | |
# - jq | |
# - speedtest | |
# - t | |
EXPECTED_DL=400 |