Skip to content
myks

Reviewable manifests for every cluster

GitOps for Kubernetes fleetsMyks takes upstream Helm charts, Git repositories and plain YAML, applies your per-cluster configuration, and writes plain Kubernetes manifests to rendered/. You commit that output, so every pull request shows what changes in which cluster.
Terminal window
brew install --cask mykso/tap/myks

What the pull request shows

A pull request adds resource limits to a prototype's Helm values and raises the replica count in production. myks render writes the result for every cluster, so reviewers see what each one will receive. The diffs are real output from examples/simple.

You change 2 files changed, +7 −1

prototypes/httpbingo/helm/httpbingo.yaml
@@ -9,3 +9,9 @@ securityContext:
runAsNonRoot: true
runAsUser: 1000
replicaCount: 1
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
memory: 128Mi
envs/prod/_apps/httpbingo/helm/httpbingo.yaml
@@ -1,2 +1,2 @@
---
replicaCount: #@ 1 + 1
replicaCount: 3

Reviewers see

1 file changed, +6 −1

rendered/envs/mykso-dev/httpbingo/deployment-httpbingo.yaml
@@ -37,5 +37,10 @@ spec:
path: /
port: http
resources: {}
resources:
limits:
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false

How it fits

Helm charts, Git repositories and plain YAML go in; plain manifests come out, committed next to the configuration that produced them.

Helm, Git, HTTPsync→myks
myksrender→rendered/
rendered/commit + review→Argo CD / Flux
Argo CD / Fluxdeploy→clusters

Environments inherit down the tree

Environments are directories under envs/, and each inherits the data values of every directory above it. A grouping level such as prod/ holds what all production clusters share. myks render prod renders both production clusters, myks render prod/eu only one.

  • 1envs/env-data.ytt.yamldefaults for everything
    • 2prod/env-data.ytt.yamlproduction defaults
      • 3eu/env-data.ytt.yamlenvironment.id: prod-eu
      • us/env-data.ytt.yamlenvironment.id: prod-us
    • staging/grouping level, renders nothing
      • eu/env-data.ytt.yamlenvironment.id: staging-eu

Features

01

Every change is reviewable

Output is sorted, deterministic and split into one file per resource, so a pull request diff is the change the cluster receives.

02

Define once, override where needed

Environments form a directory tree that inherits from its parents, and applications are instances of reusable prototypes.

03

Patch charts without forking

ytt overlays modify the rendered output of a chart for one application, one prototype, or every application of an environment.

04

Fast on large fleets

Smart Mode renders only the applications your changes affect, and applications render in parallel.

05

Argo CD built in

Generates an Application per application, plus an AppProject and a cluster Secret per environment.

06

Know where each value comes from

myks inspect apps --provenance names the file that sets every final value; --redundant reports overrides that change nothing.

Components

myks render
Download sources and render manifests for environments and applications.
myks init
Create a new project.
myks inspect
Show environments, applications and prototypes, and where their values come from.
myks cleanup
Remove obsolete rendered manifests and cache entries.
myks migrate
Seed a KCL configuration tree from the ytt data-values files.

Links