Skip to content

Instantly share code, notes, and snippets.

@ams0
Last active July 21, 2020 10:26
Show Gist options
  • Save ams0/3197187f82ae50d166873b9e7a7b85fb to your computer and use it in GitHub Desktop.
Save ams0/3197187f82ae50d166873b9e7a7b85fb to your computer and use it in GitHub Desktop.
#Deploy Linkerd2 with helm3 and certificates
kubectl create ns linkerd
kubectl label ns linkerd config.linkerd.io/admission-webhooks=disabled
#brew install step
step certificate create identity.linkerd.cluster.local ca.crt ca.key --profile root-ca --no-password --insecure
step certificate create identity.linkerd.cluster.local issuer.crt issuer.key --ca ca.crt --ca-key ca.key --profile intermediate-ca --not-after 8760h --no-password --insecure
#install helm3-rc from https://github.com/helm/helm/releases
helm repo add linkerd https://helm.linkerd.io/stable
helm repo update
helm install \
--set-file Identity.TrustAnchorsPEM=ca.crt \
--set-file Identity.Issuer.TLS.CrtPEM=issuer.crt \
--set-file Identity.Issuer.TLS.KeyPEM=issuer.key \
--set Identity.Issuer.CrtExpiry=$(date -v+8760H +"%Y-%m-%dT%H:%M:%SZ") \
--set InstallNamespace=false \
--set Namespace=linkerd \
linkerd2 linkerd/linkerd2
#upgrade
#helm upgrade linkerd2 linkerd/linkerd2 --reuse-values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment