tfy-manifests-template

by TrueFoundry

Helm chartv0.2.0Verified publisher

A Helm chart where all K8s manifest comes from values.yaml

About this chart

tfy-manifests-template

This chart is an empty chart which is used to deploy k8s manifests directly from argo.

There is one variable namely manifests which is used to pass multiple manifest objects.

Below is the sample values file that can write multiple manifests

manifests:
- apiVersion: v1
  kind: Service
  metadata:
    name: helm-guestbook
    labels:
      app: helm-guestbook
  spec:
    type: ClusterIP
    ports:
      - port: 80
        targetPort: http
        protocol: TCP
        name: http
    selector:
      app: helm-guestbook
- apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: helm-guestbook
    labels:
      foo: bar
  spec:
    replicas: 1
    revisionHistoryLimit: 3
    selector:
      matchLabels:
        app: helm-guestbook
    template:
      metadata:
        labels:
          app: helm-guestbook
      spec:
        containers:
          - name: helm-guestbook
            image: "gcr.io/heptio-images/ks-guestbook-demo:0.1"
            imagePullPolicy: IfNotPresent
            ports:
              - name: http
                containerPort: 80
                protocol: TCP
            livenessProbe:
              httpGet:
                path: /
                port: http
            readinessProbe:
              httpGet:
                path: /
                port: http
            resources:
              limits:
                memory: 512Mi

Deploy tfy-manifests-template with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tfy-manifests-template 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttfy-manifests-template is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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