Skip to content

Commit

Permalink
Add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rdrgmnzs authored and Rodrigo Menezes committed Apr 26, 2020
1 parent 32e6a6b commit 09f418d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -135,14 +135,20 @@ 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/
- name: state
mountPath: /var/aws-iam-authenticator/
- name: output
mountPath: /etc/kubernetes/aws-iam-authenticator/

volumes:
- name: config
configMap:
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 09f418d

Please sign in to comment.