Patrik Kőlbl

Patrik Kőlbl

Symfony Developer, Nuxt.js 3, OpenSearch, API, AMQP Docker & Kubernetes, Terraform
Brno
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/" --- apiVersion: v1
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/content/images/2021/CV-KOLBL-PHP-2021-EN.pdf name:
1 min read