#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
I looked around and did not find an answer to this so just sharing.
I deployed a jenkins chart using below command:
helm install -n cd stable/jenkins -f jenkins/values.yaml --version 0.16.6 --wait
Then I wanted to remove external load balancer for a bit, just testing some things so removed it by:
#!/usr/bin/awk -f | |
# | |
# Take a PEM format file as input and split out certs and keys into separate files | |
# | |
BEGIN { n=0; cert=0; key=0; if ( ARGC < 2 ) { print "Usage: pem-split FILENAME"; exit 1 } } | |
/-----BEGIN PRIVATE KEY-----/ { key=1; cert=0 } | |
/-----BEGIN CERTIFICATE-----/ { cert=1; key=0 } | |
split_after == 1 { n++; split_after=0 } | |
/-----END CERTIFICATE-----/ { split_after=1 } |
VBoxManage controlvm minikube natpf1 k8s-apiserver,tcp,127.0.0.1,8443,,8443 | |
kubectl config set-cluster minikube-vpn --server=https://127.0.0.1:8443 --insecure-skip-tls-verify | |
kubectl config set-context minikube-vpn --cluster=minikube-vpn --user=minikube | |
kubectl config use-context minikube-vpn | |
VBoxManage controlvm minikube natpf1 k8s-dashboard,tcp,127.0.0.1,30000,,30000 | |
VBoxManage controlvm minikube natpf1 docker,tcp,127.0.0.1,2376,,2376 | |
minikube docker-env|sed 's/192.168.99.101/127.0.0.1/' |
#!/bin/bash | |
apt-get update | |
apt-get install -y git wget | |
# Install Docker | |
apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
openssl x509 -in /etc/kubernetes/pki/ca.crt -noout -pubkey | openssl rsa -pubin -outform DER 2>/dev/null | sha256sum | cut -d' ' -f1 | |
Reference: | |
https://github.com/kubernetes/kubeadm/issues/659#issuecomment-392822587 |
# Drain and delete the nodes (for each node you have) | |
kubectl drain kubenode1 --delete-local-data --force --ignore-daemonsets | |
kubectl delete node kubenode1 | |
# Reset the deployment | |
sudo kubeadm reset | |
# On each node | |
## Reset the nodes and weave |
#!/bin/bash | |
cat secrets-alone.yml |awk -F: '{ printf "export %s=",$1; system ("echo "$2"|base64 -d "); system("echo")}' |
You need to use a tpl trick to interpolate the value, since helm variable in values are not processed, you have to update your deployment, for example:
In your values.yaml:
tag: "{{ .Chart.AppVersion }}"
In your deployment:
image: "{{ .Values.api.image.repository }}:{{ tpl .Values.api.image.tag . }}"