Exploit.cz

Exploit.cz

Thoughts, stories and ideas about Symfony, PHP, AWS, Docker, Kubernetes

SOLVED: rke2-agent-3 systemd[1]: Failed to start Rancher Kubernetes Engine v2 (agent) invalid kernel parameter
kubernetes

SOLVED: rke2-agent-3 systemd[1]: Failed to start Rancher Kubernetes Engine v2 (agent) invalid kernel parameter

root@:/etc/rancher/rke2# sudo systemctl status rke2-agent ● rke2-agent.service - Rancher Kubernetes Engine v2 (agent) Loaded: loaded (/usr/local/lib/systemd/system/rke2-agent.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2023-11-29 13:37:29 CET; 1min 2s ago Docs: https://github.com/rancher/rke2#
2 min read
How to regenerate sitemap every day via livenessProbe in Kubernetes

How to regenerate sitemap every day via livenessProbe in Kubernetes

kubectl apply -f --namespace=app deployment.yaml deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: workload.user.cattle.io/workloadselector: apps.deployment-sitemaps name: sitemaps spec: progressDeadlineSeconds: 10 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: workload.user.cattle.io/workloadselector: apps.deployment-sitemaps strategy: rollingUpdate: maxSurge: 50% maxUnavailable: 0% type: RollingUpdate templ
1 min read
Helm install OpenSearch Cluster with persistence to local disk + Hunspell
kubernetes

Helm install OpenSearch Cluster with persistence to local disk + Hunspell

kubectl apply -f values.yaml values.yaml # Only create this for K8s 1.9+ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: local-storage provisioner: kubernetes.io/no-provisioner volumeBindingMode: WaitForFirstConsumer # Supported policies: Delete, Retain reclaimPolicy: Retain --- apiVersion: v1 kind: PersistentVolume metadata: name: opensearch-agent-1 spec: accessModes: - ReadWriteOnce capacity: storage:
3 min read
kubernetes

Helm install Bitnami MariaDB Galera to hostPath

$ kubectl apply -f pvc.yaml --- kind: Namespace apiVersion: v1 metadata: name: mariadb-galera-new --- apiVersion: v1 kind: PersistentVolume metadata: name: mariadb-galera-new-pv namespace: mariadb-galera-new spec: storageClassName: manual # mountOptions: # - dir_mode=0777 # - file_mode=0777 capacity: storage: 40Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: "/bitnami/mariadb-galera-new/" ---
3 min read
Redirect .env file to your Curriculum Vitae - simplest way to Ingress redirect via annotations in Kubernetes
kubernetes

Redirect .env file to your Curriculum Vitae - simplest way to Ingress redirect via annotations in Kubernetes

Redirect /.env file to your curriculum vitae via nginx.ingress.kubernetes.io/temporal-redirect annotation apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: ingress.kubernetes.io/ssl-redirect: "true" kubernetes.io/tls-acme: "true" nginx.ingress.kubernetes.io/from-to-www-redirect: "true" nginx.ingress.kubernetes.io/temporal-redirect: https://exploit.cz/
1 min read