kubeconfigs beech

This commit is contained in:
2020-02-28 19:04:01 +01:00
parent dc2806b4ff
commit 516d1762ae
8 changed files with 176 additions and 3 deletions

3
.gitignore vendored
View File

@@ -13,3 +13,6 @@
!.scripts
!.scripts/**
!.vars
!.kube
!.kube/configs

38
.kube/config Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURERENDQWZTZ0F3SUJBZ0lSQUkxYTFPSWZZTWM5cDVnaFBTdkVjNkl3RFFZSktvWklodmNOQVFFTEJRQXcKTHpFdE1Dc0dBMVVFQXhNa01HSTBaakV3WVRZdE5HTmlNaTAwTlRreExUa3hZak10WTJWbFptVXhabVF4TWpreQpNQjRYRFRJd01ESXhOekV4TlRNMU5Gb1hEVEkxTURJeE5URXlOVE0xTkZvd0x6RXRNQ3NHQTFVRUF4TWtNR0kwClpqRXdZVFl0TkdOaU1pMDBOVGt4TFRreFlqTXRZMlZsWm1VeFptUXhNamt5TUlJQklqQU5CZ2txaGtpRzl3MEIKQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbjhQdDFNY1hzbkdjNVAvWXpMZSsxUWg4WFVvOEJTSmZyV25LTnQxbwpSWWZaLzNYYzJOZlNXVTNTRHA3R1UwR2ZGcTRLOXIwZ2lMOTI3NmVuTUQ0cnpXemdzU2JNd1k0dVZINVBobHA5CkxKR292SllCSXFmNmNsMEdKRGFON0lEckpxOWE2a3JjSWVWelJRMk1udGJ1S3Jva2V6aFNoNmFIbmRFSGptT1YKYklvNTNISW55SlhoNnJiNTJBTUtPeE1ZN2VTT2wzSktzZ0hPNktaRUFPc2tYRjQ0b1hieXErM2VudlNUVU1hYQo2QkEyT1l2MHVDM1k4TXZIKzhRZ2I0TENsUC82ZWtaMDVQMGRKVkZXRXJlZjZDMmx5ZWZtVFNHL2x1aEJBMnFuCnAxM0tocUViQ0FmdDFrYmV2MDIwdGpmcXg0TVErK285QWNLMzFncVhTOWhPRVFJREFRQUJveU13SVRBT0JnTlYKSFE4QkFmOEVCQU1DQWdRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQQpYbHJrMzVlYzBMK2poLzhWQk53aFpkL2hzSmtKYTZ3dWtzaWVCQTNpdXRENnp3WGFXMkdRUTZCbzY2ZTd2Rjh4CkR1RDNRM3Vxck5PelpYSUphcVUwUEQ4ZXR1R2lwaVQ0SDgrdVoydWtZWkJpRW9ReThraHk1ajIzcTl6dXRHK2kKVmtWS24wY0RZLy9FamJiSkxEUlgyZWpEVjQweU5KSjVuV3UwM2NoajNBWHlaLzdmRFVZU0hJWWlySmFYeStEawpjVGJMaTd6WkZiNzdESG1xblAwR1RxZ2NEbW4xb3hjUDY3UmFnZzV6WFpvbUZNTmphZWw5MkhwRXk3SkdLckxEClhUN3k0bXpMRThlTExnWGdaSFRNRVBoYWFOc0tzMVcrTkJidjYyeVN4K3R0TzlXeVF0QUp3N0hLUCs4ZUZpTEsKcUxqdDhYclFmenFybDhhek1PWWpkQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://35.233.93.220
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- cluster:
certificate-authority: /Users/beppe/.minikube/ca.crt
server: https://192.168.64.7:8443
name: minikube
contexts:
- context:
cluster: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- context:
cluster: minikube
user: minikube
name: minikube
current-context: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
kind: Config
preferences: {}
users:
- name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user:
auth-provider:
config:
access-token: ya29.Ima_B8Ds9Ye6wMaIsKMJfxQJc9Aup3wJLD1HpI8FUOpv7z1Y3wh8Ba7nFRU9Yj-rKba8_zh4VK6Vj6seETTM946fz_VbmOYsG94Twk0hwtVbqDCR-fkng83mS7kudvcRDcAcPcEvQeo
cmd-args: config config-helper --format=json
cmd-path: /Users/beppe/Downloads/google-cloud-sdk/bin/gcloud
expiry: "2020-02-27T19:31:39Z"
expiry-key: '{.credential.token_expiry}'
token-key: '{.credential.access_token}'
name: gcp
- name: minikube
user:
client-certificate: /Users/beppe/.minikube/client.crt
client-key: /Users/beppe/.minikube/client.key

38
.kube/configs/google Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURERENDQWZTZ0F3SUJBZ0lSQUkxYTFPSWZZTWM5cDVnaFBTdkVjNkl3RFFZSktvWklodmNOQVFFTEJRQXcKTHpFdE1Dc0dBMVVFQXhNa01HSTBaakV3WVRZdE5HTmlNaTAwTlRreExUa3hZak10WTJWbFptVXhabVF4TWpreQpNQjRYRFRJd01ESXhOekV4TlRNMU5Gb1hEVEkxTURJeE5URXlOVE0xTkZvd0x6RXRNQ3NHQTFVRUF4TWtNR0kwClpqRXdZVFl0TkdOaU1pMDBOVGt4TFRreFlqTXRZMlZsWm1VeFptUXhNamt5TUlJQklqQU5CZ2txaGtpRzl3MEIKQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbjhQdDFNY1hzbkdjNVAvWXpMZSsxUWg4WFVvOEJTSmZyV25LTnQxbwpSWWZaLzNYYzJOZlNXVTNTRHA3R1UwR2ZGcTRLOXIwZ2lMOTI3NmVuTUQ0cnpXemdzU2JNd1k0dVZINVBobHA5CkxKR292SllCSXFmNmNsMEdKRGFON0lEckpxOWE2a3JjSWVWelJRMk1udGJ1S3Jva2V6aFNoNmFIbmRFSGptT1YKYklvNTNISW55SlhoNnJiNTJBTUtPeE1ZN2VTT2wzSktzZ0hPNktaRUFPc2tYRjQ0b1hieXErM2VudlNUVU1hYQo2QkEyT1l2MHVDM1k4TXZIKzhRZ2I0TENsUC82ZWtaMDVQMGRKVkZXRXJlZjZDMmx5ZWZtVFNHL2x1aEJBMnFuCnAxM0tocUViQ0FmdDFrYmV2MDIwdGpmcXg0TVErK285QWNLMzFncVhTOWhPRVFJREFRQUJveU13SVRBT0JnTlYKSFE4QkFmOEVCQU1DQWdRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQQpYbHJrMzVlYzBMK2poLzhWQk53aFpkL2hzSmtKYTZ3dWtzaWVCQTNpdXRENnp3WGFXMkdRUTZCbzY2ZTd2Rjh4CkR1RDNRM3Vxck5PelpYSUphcVUwUEQ4ZXR1R2lwaVQ0SDgrdVoydWtZWkJpRW9ReThraHk1ajIzcTl6dXRHK2kKVmtWS24wY0RZLy9FamJiSkxEUlgyZWpEVjQweU5KSjVuV3UwM2NoajNBWHlaLzdmRFVZU0hJWWlySmFYeStEawpjVGJMaTd6WkZiNzdESG1xblAwR1RxZ2NEbW4xb3hjUDY3UmFnZzV6WFpvbUZNTmphZWw5MkhwRXk3SkdLckxEClhUN3k0bXpMRThlTExnWGdaSFRNRVBoYWFOc0tzMVcrTkJidjYyeVN4K3R0TzlXeVF0QUp3N0hLUCs4ZUZpTEsKcUxqdDhYclFmenFybDhhek1PWWpkQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://35.233.93.220
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- cluster:
certificate-authority: /Users/beppe/.minikube/ca.crt
server: https://192.168.64.7:8443
name: minikube
contexts:
- context:
cluster: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- context:
cluster: minikube
user: minikube
name: minikube
current-context: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
kind: Config
preferences: {}
users:
- name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user:
auth-provider:
config:
access-token: ya29.Ima_B_9WdumnuvGDHqSZOHasNL9Ztn3LKVKHcwitWBU72EC5fKvFMDbmdgULI_tZMA8qYUdGfUqFrFQM9NNxHHuH2MMUDQs4gI9qDVr3--Td2S_BPiio8nrwVjehvaO_9qBrbEzADk4
cmd-args: config config-helper --format=json
cmd-path: /Users/beppe/Downloads/google-cloud-sdk/bin/gcloud
expiry: "2020-02-26T11:06:42Z"
expiry-key: '{.credential.token_expiry}'
token-key: '{.credential.access_token}'
name: gcp
- name: minikube
user:
client-certificate: /Users/beppe/.minikube/client.crt
client-key: /Users/beppe/.minikube/client.key

38
.kube/configs/minikube Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURERENDQWZTZ0F3SUJBZ0lSQUkxYTFPSWZZTWM5cDVnaFBTdkVjNkl3RFFZSktvWklodmNOQVFFTEJRQXcKTHpFdE1Dc0dBMVVFQXhNa01HSTBaakV3WVRZdE5HTmlNaTAwTlRreExUa3hZak10WTJWbFptVXhabVF4TWpreQpNQjRYRFRJd01ESXhOekV4TlRNMU5Gb1hEVEkxTURJeE5URXlOVE0xTkZvd0x6RXRNQ3NHQTFVRUF4TWtNR0kwClpqRXdZVFl0TkdOaU1pMDBOVGt4TFRreFlqTXRZMlZsWm1VeFptUXhNamt5TUlJQklqQU5CZ2txaGtpRzl3MEIKQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbjhQdDFNY1hzbkdjNVAvWXpMZSsxUWg4WFVvOEJTSmZyV25LTnQxbwpSWWZaLzNYYzJOZlNXVTNTRHA3R1UwR2ZGcTRLOXIwZ2lMOTI3NmVuTUQ0cnpXemdzU2JNd1k0dVZINVBobHA5CkxKR292SllCSXFmNmNsMEdKRGFON0lEckpxOWE2a3JjSWVWelJRMk1udGJ1S3Jva2V6aFNoNmFIbmRFSGptT1YKYklvNTNISW55SlhoNnJiNTJBTUtPeE1ZN2VTT2wzSktzZ0hPNktaRUFPc2tYRjQ0b1hieXErM2VudlNUVU1hYQo2QkEyT1l2MHVDM1k4TXZIKzhRZ2I0TENsUC82ZWtaMDVQMGRKVkZXRXJlZjZDMmx5ZWZtVFNHL2x1aEJBMnFuCnAxM0tocUViQ0FmdDFrYmV2MDIwdGpmcXg0TVErK285QWNLMzFncVhTOWhPRVFJREFRQUJveU13SVRBT0JnTlYKSFE4QkFmOEVCQU1DQWdRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQQpYbHJrMzVlYzBMK2poLzhWQk53aFpkL2hzSmtKYTZ3dWtzaWVCQTNpdXRENnp3WGFXMkdRUTZCbzY2ZTd2Rjh4CkR1RDNRM3Vxck5PelpYSUphcVUwUEQ4ZXR1R2lwaVQ0SDgrdVoydWtZWkJpRW9ReThraHk1ajIzcTl6dXRHK2kKVmtWS24wY0RZLy9FamJiSkxEUlgyZWpEVjQweU5KSjVuV3UwM2NoajNBWHlaLzdmRFVZU0hJWWlySmFYeStEawpjVGJMaTd6WkZiNzdESG1xblAwR1RxZ2NEbW4xb3hjUDY3UmFnZzV6WFpvbUZNTmphZWw5MkhwRXk3SkdLckxEClhUN3k0bXpMRThlTExnWGdaSFRNRVBoYWFOc0tzMVcrTkJidjYyeVN4K3R0TzlXeVF0QUp3N0hLUCs4ZUZpTEsKcUxqdDhYclFmenFybDhhek1PWWpkQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://35.233.93.220
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- cluster:
certificate-authority: /Users/beppe/.minikube/ca.crt
server: https://192.168.64.9:8443
name: minikube
contexts:
- context:
cluster: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- context:
cluster: minikube
user: minikube
name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user:
auth-provider:
config:
access-token: ya29.Ima_B591JfK-f9-cjKbrgt2Tn0HqtVrkQPxQUKP3T_HRrf9n8qL89BNckWnW3toV5_g1bGVMR5Nmb51koKSIjPJBtL5CDlb7rXPLayUBq0qzeH1rZ3kQEgwh7uG7V-m3Sv_KQIwqmVM
cmd-args: config config-helper --format=json
cmd-path: /Users/beppe/Downloads/google-cloud-sdk/bin/gcloud
expiry: "2020-02-24T13:02:47Z"
expiry-key: '{.credential.token_expiry}'
token-key: '{.credential.access_token}'
name: gcp
- name: minikube
user:
client-certificate: /Users/beppe/.minikube/client.crt
client-key: /Users/beppe/.minikube/client.key

38
.kube/mconfig Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURERENDQWZTZ0F3SUJBZ0lSQUkxYTFPSWZZTWM5cDVnaFBTdkVjNkl3RFFZSktvWklodmNOQVFFTEJRQXcKTHpFdE1Dc0dBMVVFQXhNa01HSTBaakV3WVRZdE5HTmlNaTAwTlRreExUa3hZak10WTJWbFptVXhabVF4TWpreQpNQjRYRFRJd01ESXhOekV4TlRNMU5Gb1hEVEkxTURJeE5URXlOVE0xTkZvd0x6RXRNQ3NHQTFVRUF4TWtNR0kwClpqRXdZVFl0TkdOaU1pMDBOVGt4TFRreFlqTXRZMlZsWm1VeFptUXhNamt5TUlJQklqQU5CZ2txaGtpRzl3MEIKQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbjhQdDFNY1hzbkdjNVAvWXpMZSsxUWg4WFVvOEJTSmZyV25LTnQxbwpSWWZaLzNYYzJOZlNXVTNTRHA3R1UwR2ZGcTRLOXIwZ2lMOTI3NmVuTUQ0cnpXemdzU2JNd1k0dVZINVBobHA5CkxKR292SllCSXFmNmNsMEdKRGFON0lEckpxOWE2a3JjSWVWelJRMk1udGJ1S3Jva2V6aFNoNmFIbmRFSGptT1YKYklvNTNISW55SlhoNnJiNTJBTUtPeE1ZN2VTT2wzSktzZ0hPNktaRUFPc2tYRjQ0b1hieXErM2VudlNUVU1hYQo2QkEyT1l2MHVDM1k4TXZIKzhRZ2I0TENsUC82ZWtaMDVQMGRKVkZXRXJlZjZDMmx5ZWZtVFNHL2x1aEJBMnFuCnAxM0tocUViQ0FmdDFrYmV2MDIwdGpmcXg0TVErK285QWNLMzFncVhTOWhPRVFJREFRQUJveU13SVRBT0JnTlYKSFE4QkFmOEVCQU1DQWdRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQQpYbHJrMzVlYzBMK2poLzhWQk53aFpkL2hzSmtKYTZ3dWtzaWVCQTNpdXRENnp3WGFXMkdRUTZCbzY2ZTd2Rjh4CkR1RDNRM3Vxck5PelpYSUphcVUwUEQ4ZXR1R2lwaVQ0SDgrdVoydWtZWkJpRW9ReThraHk1ajIzcTl6dXRHK2kKVmtWS24wY0RZLy9FamJiSkxEUlgyZWpEVjQweU5KSjVuV3UwM2NoajNBWHlaLzdmRFVZU0hJWWlySmFYeStEawpjVGJMaTd6WkZiNzdESG1xblAwR1RxZ2NEbW4xb3hjUDY3UmFnZzV6WFpvbUZNTmphZWw5MkhwRXk3SkdLckxEClhUN3k0bXpMRThlTExnWGdaSFRNRVBoYWFOc0tzMVcrTkJidjYyeVN4K3R0TzlXeVF0QUp3N0hLUCs4ZUZpTEsKcUxqdDhYclFmenFybDhhek1PWWpkQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://35.233.93.220
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- cluster:
certificate-authority: /Users/beppe/.minikube/ca.crt
server: https://192.168.64.6:8443
name: minikube
contexts:
- context:
cluster: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
- context:
cluster: minikube
user: minikube
name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: gke_flowfactor_europe-west1-b_ff-stage-euw1-cluster-primary
user:
auth-provider:
config:
access-token: ya29.Ima_B591JfK-f9-cjKbrgt2Tn0HqtVrkQPxQUKP3T_HRrf9n8qL89BNckWnW3toV5_g1bGVMR5Nmb51koKSIjPJBtL5CDlb7rXPLayUBq0qzeH1rZ3kQEgwh7uG7V-m3Sv_KQIwqmVM
cmd-args: config config-helper --format=json
cmd-path: /Users/beppe/Downloads/google-cloud-sdk/bin/gcloud
expiry: "2020-02-24T13:02:47Z"
expiry-key: '{.credential.token_expiry}'
token-key: '{.credential.access_token}'
name: gcp
- name: minikube
user:
client-certificate: /Users/beppe/.minikube/client.crt
client-key: /Users/beppe/.minikube/client.key

5
.scripts/bash/chku Executable file
View File

@@ -0,0 +1,5 @@
echo "listing kubeconfigs for user $USER :\n"
ls -1 $HOME/.kube/configs
echo "\nplease select one of the configs above:"
read con
cp $HOME/.kube/configs/$con $HOME/.kube/config

View File

19
.zshrc
View File

@@ -128,7 +128,10 @@ alias sshkey= "cat ~/.ssh/id_rsa.pub"
sst() {
ssh $1 -t 'tmux -CC'
}
alias mistioctl="istioctl --kubeconfig ~/.kube/mconfig"
alias mubectl="kubectl --kubeconfig ~/.kube/mconfig"
alias gubectl="kubectl --kubeconfig ~/.kube/gconfig"
alias gistioctl="istioctl --kubeconfig ~/.kube/gconfig"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
source ~/.vars
@@ -136,6 +139,16 @@ source ~/.scripts/zsh
export PATH="/usr/local/opt/terraform@0.11/bin:$PATH"
export GOPATH="/User/beppe/go"
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
export JAVA_HOME=$(/usr/libexec/java_home)
export JRE_HOME=$(/usr/libexec/java_home)
alias mkube="minikube"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/beppe/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/beppe/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/beppe/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/beppe/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
export PATH="/usr/local/opt/gettext/bin:$PATH"