1. Modified deployment.yaml to remove source config
    2. Modified values to change default kubeconfigHost values
    3. Removed debugging logs
This commit is contained in:
Vidit Mathur
2020-02-20 19:44:57 +05:30
parent 8e996b61ae
commit 1f0a4d9f35
3 changed files with 3 additions and 16 deletions
+1 -13
View File
@@ -48,11 +48,6 @@ spec:
secret:
secretName: "{{ .Values.kubeconfigHost }}"
{{- end }}
{{- if .Values.kubeconfigSource }}
- name: kubeconfig-source
secret:
secretName: "{{ .Values.kubeconfigSource }}"
{{- end }}
containers:
- name: flagger
securityContext:
@@ -63,10 +58,6 @@ spec:
- name: kubeconfig
mountPath: "/tmp/istio-host"
{{- end }}
{{- if .Values.kubeconfigSource }}
- name: kubeconfig-source
mountPath: "/tmp/istio-source"
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
@@ -110,11 +101,8 @@ spec:
{{- if .Values.eventWebhook }}
- -event-webhook={{ .Values.eventWebhook }}
{{- end }}
{{- if .Values.kubeconfigSource }}
- -kubeconfig=/tmp/istio-source/config1
{{- end }}
{{- if .Values.kubeconfigHost }}
- -kubeconfig-host=/tmp/istio-host/config1
- -kubeconfig-host=/tmp/istio-host/kubeconfig
{{- end }}
livenessProbe:
exec:
+1 -2
View File
@@ -103,5 +103,4 @@ prometheus:
# to be used with ingress controllers
install: false
kubeconfigSource: ""
kubeconfigHost: "kubeconfig"
kubeconfigHost: ""
+1 -1
View File
@@ -113,7 +113,7 @@ func main() {
if err != nil {
logger.Fatalf("Error building kubeconfig: %v", err)
}
fmt.Println(cfg)
kubeClient, err := kubernetes.NewForConfig(cfg)
if err != nil {
logger.Fatalf("Error building kubernetes clientset: %v", err)