az extension add --name aks-preview
az extension update --name aks-preview
az feature register --namespace "Microsoft.ContainerService" --name "KubeProxyConfigurationPreview"
az provider register --namespace "Microsoft.ContainerService"
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
# https://github.com/postfinance/kubenurse | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: kubenurse | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: |
Optional: Disable PSA
k label ns default pod-security.kubernetes.io/enforce=privileged
k label ns default pod-security.kubernetes.io/audit=privileged # optional
k label ns default pod-security.kubernetes.io/warn=privileged # optional
Start tshoot
pod:
echo '
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: Deployment | |
metadata: | |
name: iperf3 | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: iperf3 | |
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
kubectl run -it --rm tshoot --overrides=' | |
{ | |
"spec": { | |
"containers": [ | |
{ | |
"name": "tshoot", | |
"image": "nicolaka/netshoot:latest", | |
"command": ["/bin/bash"], | |
"stdin": true, | |
"stdinOnce": true, |
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
# https://github.com/bloomberg/goldpinger | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: goldpinger1 | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: |
Docker-Compose single-host Minio S3 setup using Traefik (Let's Encrypt with DNS-01 challenge via Cloudflare) for TLS offloading.
Tested on Ubuntu 20.04.
Run all commands shown here with root
or prepend a sudo
to the regarding commands which require higher privileges.
Tested on a Rocky Linux 8.4 VM on DigitalOcean. Run everything as root
. Based on RKE2, Cilium, Nginx and Longhorn.
# SELinux
sestatus
setenforce 0
sed -i --follow-symlinks 's/^SELINUX=.*/SELINUX=permissive/g' /etc/sysconfig/selinux && cat /etc/sysconfig/selinux
sestatus
RKE2 Node Cleanup To reset a RKE2 node, run the following commands:
# rke2-(server|agent) related
rke2-killall.sh
rke2-uninstall.sh
# rancher-system-agent related
systemctl stop rancher-system-agent.service
systemctl disable rancher-system-agent.service
rm -f /etc/systemd/system/rancher-system-agent.service
NewerOlder