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
loki: | |
persistence: | |
enabled: true | |
size: 5Gi | |
serviceMonitor: | |
enabled: true | |
promtail: | |
enabled: true | |
extraScrapeConfigs: | |
- job_name: kubernetes-pods-app |
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
{ | |
"appName": "production-deployment", | |
"destNamespace": "prod" | |
} |
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: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: external-dns | |
namespace: argocd | |
annotations: | |
argocd.argoproj.io/sync-wave: "2" | |
spec: | |
destination: | |
namespace: external-dns |
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: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: sealed-secrets-controller | |
namespace: argocd | |
spec: | |
project: default | |
source: | |
repoURL: https://bitnami-labs.github.io/sealed-secrets | |
targetRevision: 0.17.5 |
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
# Often after hibernation your docker containers will be out of sync which will create problems with everythin expiration based. | |
# This quick fix will update the time in your local docker desktop container which should be using wsl und Windows 11 | |
# You can find more information about hwclock here: https://linux.die.net/man/8/hwclock | |
$ wsl -d docker-desktop -e /sbin/hwclock -s |
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 get deployments --no-headers | wc -l |
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
# Enable MetalLB Load Balancer. | |
microk8s enable metallb | |
when asked for an IP range give a NEW ONE for instance 10.37.1.0/24 | |
## route local machine | |
route -P add 10.1.2.0/24 MASK 255.255.255.0 10.0.37.1 | |
## in order to do that with OpenWRT just add a static route! | |
Host-IP or Network: 10.1.1.1/24 MASK 255.255.255.0 Gateway:10.37.0.6 |
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
# Scale Up the Deployment | |
kubectl scale --replicas=20 deployment/<Deployment-Name> | |
kubectl scale --replicas=20 deployment/my-deployment | |
# Verify Deployment status | |
kubectl get deployments | |
# Verify ReplicaSet has been updated | |
kubectl get rs |
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
#cloud-config | |
packages: | |
- ufw | |
- fail2ban | |
package_update: true | |
package_upgrade: true | |
runcmd: | |
- sed -i 's/[#]*PermitRootLogin yes/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config | |
- sed -i 's/[#]*PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config | |
- systemctl restart sshd |
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
# with more you can easily scroll through the kubectl output: | |
kubectl -n kube-system get deployment.apps/cluster-autoscaler -o yaml | more |
NewerOlder