first claude draft
This commit is contained in:
22
k8s/overlays/local/kustomization.yaml
Normal file
22
k8s/overlays/local/kustomization.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: sysmonstm
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- secrets.yaml
|
||||
|
||||
patches:
|
||||
- path: patches/reduce-resources.yaml
|
||||
|
||||
images:
|
||||
- name: sysmonstm/aggregator
|
||||
newName: sysmonstm-aggregator
|
||||
newTag: dev
|
||||
- name: sysmonstm/gateway
|
||||
newName: sysmonstm-gateway
|
||||
newTag: dev
|
||||
- name: sysmonstm/alerts
|
||||
newName: sysmonstm-alerts
|
||||
newTag: dev
|
||||
50
k8s/overlays/local/patches/reduce-resources.yaml
Normal file
50
k8s/overlays/local/patches/reduce-resources.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: aggregator
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: aggregator
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "200m"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gateway
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: gateway
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "200m"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: timescaledb
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: timescaledb
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "200m"
|
||||
8
k8s/overlays/local/secrets.yaml
Normal file
8
k8s/overlays/local/secrets.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: timescaledb-secret
|
||||
namespace: sysmonstm
|
||||
type: Opaque
|
||||
stringData:
|
||||
password: "monitor" # Only for local dev!
|
||||
Reference in New Issue
Block a user