From 09f418d60da2ad09ef61ff22b8f65d34c75caaeb Mon Sep 17 00:00:00 2001 From: Rodrigo Menezes Date: Sun, 26 Apr 2020 01:08:22 -0700 Subject: [PATCH] Add healthcheck --- .../addons/authentication.aws/k8s-1.12.yaml.template | 10 ++++++++-- upup/pkg/fi/cloudup/bootstrapchannelbuilder.go | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/upup/models/cloudup/resources/addons/authentication.aws/k8s-1.12.yaml.template b/upup/models/cloudup/resources/addons/authentication.aws/k8s-1.12.yaml.template index ceafe905c363d..698c5e4f36691 100644 --- a/upup/models/cloudup/resources/addons/authentication.aws/k8s-1.12.yaml.template +++ b/upup/models/cloudup/resources/addons/authentication.aws/k8s-1.12.yaml.template @@ -120,7 +120,7 @@ spec: # - output (output kubeconfig to plug into your apiserver configuration, mounted from the host) containers: - name: aws-iam-authenticator - image: {{ or .Authentication.Aws.Image "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:v0.5.0-scratch" }} + image: {{ or .Authentication.Aws.Image "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:v0.5.1-scratch" }} args: - server - --config=/etc/aws-iam-authenticator/config.yaml @@ -135,6 +135,13 @@ spec: memory: {{ or .Authentication.Aws.MemoryLimit "20Mi" }} cpu: {{ or .Authentication.Aws.CPULimit "100m" }} + livenessProbe: + httpGet: + host: 127.0.0.1 + path: /healthz + port: 21362 + scheme: HTTPS + volumeMounts: - name: config mountPath: /etc/aws-iam-authenticator/ @@ -142,7 +149,6 @@ spec: mountPath: /var/aws-iam-authenticator/ - name: output mountPath: /etc/kubernetes/aws-iam-authenticator/ - volumes: - name: config configMap: diff --git a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go index ed7a1c17b8274..eb88563da7208 100644 --- a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go +++ b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go @@ -979,7 +979,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons { key := "authentication.aws" versions := map[string]string{ "k8s-1.10": "0.4.0-kops.2", - "k8s-1.12": "0.5.0-kops.1", + "k8s-1.12": "0.5.1-kops.1", } { location := key + "/k8s-1.10.yaml"