Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save bboy114crew/20ba5bdab21422fa818fe5f14018ff5b to your computer and use it in GitHub Desktop.

Select an option

Save bboy114crew/20ba5bdab21422fa818fe5f14018ff5b to your computer and use it in GitHub Desktop.
# Source: https://gist.github.com/764b402c8979678dfde01fd8f63c22e2
###########################################################
# Kustomize vs Helm #
# The Fight Between Templating and Patching in Kubernetes #
# https://youtu.be/ZMFYSm0ldQ0 #
###########################################################
# Links to referenced videos:
# - https://youtu.be/sUPkGChvD54
#########
# Setup #
#########
minikube start
minikube addons enable ingress
git clone https://github.com/vfarcic/helm-vs-kustomize.git
cd helm-vs-kustomize
#########################
# Defining applications #
#########################
# Helm
cat helm/templates/ingress.yaml
# Kustomize
cat kustomize/base/ingress.yaml
# Helm
cat helm/values.yaml
# Kustomize
cat kustomize/base/kustomization.yaml
# Helm
helm upgrade --install \
devops-toolkit helm \
--namespace helm-dev \
--create-namespace
# Kustomize
kubectl create namespace kustomize-dev
# Kustomize
kustomize build \
kustomize/base \
| kubectl --namespace kustomize-dev \
apply --filename -
#############################################
# Defining environment-specific application #
#############################################
# Helm
cat helm/values-production.yaml
# Kustomize
cat kustomize/overlays/production/kustomization.yaml
# Kustomize
cat kustomize/overlays/production/ingress-patch.yaml
# Helm
helm upgrade --install \
devops-toolkit helm \
--namespace helm-production \
--create-namespace \
--values helm/values-production.yaml
# Kustomize
kustomize build \
kustomize/overlays/production \
| kubectl apply --filename -
#####################################
# Applying unplanned customizations #
#####################################
# Helm
vim helm/values.yaml
# Helm
cat snippets/deployment-resources.yaml
# Helm
vim helm/templates/deployment.yaml
# Kustomize
cat kustomize/overlays/production/deployment-patch.yaml
# Kustomize
vim kustomize/overlays/production/kustomization.yaml
# Helm
vim helm/values-production.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment