From 203f44f3ccaaddb3ab214a9b0cc9ab5c0b038760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Tue, 17 Dec 2024 00:10:49 +0100 Subject: [PATCH] Adding simplest helm chart. --- 2024/12/chart_demo1/Chart.yaml | 8 ++++++ 2024/12/chart_demo1/templates/deployment.yaml | 25 +++++++++++++++++++ 2024/12/chart_demo1/values.yaml | 1 + 3 files changed, 34 insertions(+) create mode 100644 2024/12/chart_demo1/Chart.yaml create mode 100644 2024/12/chart_demo1/templates/deployment.yaml create mode 100644 2024/12/chart_demo1/values.yaml diff --git a/2024/12/chart_demo1/Chart.yaml b/2024/12/chart_demo1/Chart.yaml new file mode 100644 index 0000000..7316dba --- /dev/null +++ b/2024/12/chart_demo1/Chart.yaml @@ -0,0 +1,8 @@ +apiVersion: v2 +name: chart-demo1 +version: 0.0.1 +maintainers: + - name: "Tomasz Półgrabia" + email: tomasz@polgrabia.me + url: "https://code.polgrabia.me/" + diff --git a/2024/12/chart_demo1/templates/deployment.yaml b/2024/12/chart_demo1/templates/deployment.yaml new file mode 100644 index 0000000..da2cd9c --- /dev/null +++ b/2024/12/chart_demo1/templates/deployment.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: chart-demo1-depl + labels: + app: chart-demo1 + type: frontend +spec: + replicas: {{ .Values.Replicas }} + selector: + matchLabels: + app: chart-demo1 + type: frontend + template: + metadata: + labels: + app: chart-demo1 + type: frontend + spec: + containers: + - name: nginx + image: nginx:latest + ports: + - containerPort: 80 + diff --git a/2024/12/chart_demo1/values.yaml b/2024/12/chart_demo1/values.yaml new file mode 100644 index 0000000..587a495 --- /dev/null +++ b/2024/12/chart_demo1/values.yaml @@ -0,0 +1 @@ +Replicas: 2