k8s-applier
Helm chartv1.0.1App 0.0.2MITVerified publisher
A Helm chart for k8s-applier component
About this chart
K8S-APPLIER
K8S-APPLIER used to apply manifests to Kubernetes clusters.
This chart bootstraps a k8s-applier deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Install helm
- Add the helm repo
helm repo add shlomibendavid https://shlomibendavid.github.io/helm-charts
Configuring
- Create a
golden-manifests.yamlfile and add all your component objects (serviceaccounts,services,secrets,deployments etc)
Example:
---
apiVersion: v1
kind: ConfigMap
metadata:
name: golden-manifests
namespace: default
labels:
app: nginx
data:
001-service.yaml: |
---
apiVersion: v1
kind: Service
metadata:
name: nginx
namespace: default
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
009-deployment.yaml: |
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
namespace: default
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
NOTES:
- Please make sure that you are following yaml rules when creating the golden-manifest.yaml
- You should add objects under data key
- All the manifests will be presented as files inside the
/etc/manifestsdirectory in thek8s-applierpod
Check Default Values
# Helm 3
helm show values .
Template Generation
# Helm 3
helm template k8s-applier .
Installation
Apply your golden-manifest.yaml
kubectl apply -f golden-manifests.yaml
Install the helm chart
helm install k8s-applier shlomibendavid/k8s-applier --version <version>
Deploy k8s-applier with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has k8s-applier on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartk8s-applier is pinned at v1.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply