Initial scaffold: Go service, Helm chart, Kustomize overlays

This commit is contained in:
rod
2026-05-17 11:59:53 +02:00
commit 7f031a7848
13 changed files with 254 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: hello-svc
releaseName: hello-svc
localChartPath: ../../helm/hello-svc
valuesFile: values.yaml
+24
View File
@@ -0,0 +1,24 @@
# Base Helm values — overlays patch on top of this via strategic merge.
replicaCount: 1
image:
repository: git.samidare.dev/rod/hello-svc
pullPolicy: Always
tag: "latest"
env:
APP_ENV: production
LOG_LEVEL: info
APP_VERSION: unknown
resources:
requests:
cpu: 100m
memory: 64Mi
limits:
cpu: 500m
memory: 128Mi
serviceMonitor:
enabled: true
interval: 30s
+22
View File
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-svc
spec:
replicas: 1
template:
spec:
containers:
- name: hello-svc
env:
- name: APP_ENV
value: dev
- name: LOG_LEVEL
value: debug
resources:
requests:
cpu: 50m
memory: 32Mi
limits:
cpu: 100m
memory: 64Mi
+11
View File
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: dev
resources:
- ../../base
- namespace.yaml
patches:
- path: deployment-patch.yaml
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: dev
+22
View File
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-svc
spec:
replicas: 3
template:
spec:
containers:
- name: hello-svc
env:
- name: APP_ENV
value: prod
- name: LOG_LEVEL
value: info
resources:
requests:
cpu: 100m
memory: 64Mi
limits:
cpu: 500m
memory: 128Mi
+11
View File
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: prod
resources:
- ../../base
- namespace.yaml
patches:
- path: deployment-patch.yaml
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: prod