Skip to content

Commit

Permalink
Merge pull request #72727 from bart0sh/PR0057-kubeadm-selfhosting-piv…
Browse files Browse the repository at this point in the history
…ot-controller-manager-add-front-proxy-ca

kubeadm: add front-proxy CA certificate to selfhosting controller-manager
  • Loading branch information
k8s-ci-robot committed Jan 10, 2019
2 parents 8955857 + d91861e commit 3d9c6eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/kubeadm/app/phases/selfhosting/selfhosting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ spec:
- --cluster-signing-key-file=/etc/kubernetes/pki/ca.key
- --bind-address=127.0.0.1
- --use-service-account-credentials=true
- --requestheader-client-ca-file=/etc/kubernetes/pki/front-proxy-ca.crt
image: k8s.gcr.io/kube-controller-manager-amd64:v1.7.4
livenessProbe:
failureThreshold: 8
Expand Down Expand Up @@ -300,6 +301,7 @@ spec:
- --cluster-signing-key-file=/etc/kubernetes/pki/ca.key
- --bind-address=127.0.0.1
- --use-service-account-credentials=true
- --requestheader-client-ca-file=/etc/kubernetes/pki/front-proxy-ca.crt
image: k8s.gcr.io/kube-controller-manager-amd64:v1.7.4
livenessProbe:
failureThreshold: 8
Expand Down
13 changes: 13 additions & 0 deletions cmd/kubeadm/app/phases/selfhosting/selfhosting_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,19 @@ func controllerManagerCertificatesVolumeSource() v1.VolumeSource {
},
},
},
{
Secret: &v1.SecretProjection{
LocalObjectReference: v1.LocalObjectReference{
Name: kubeadmconstants.FrontProxyCACertAndKeyBaseName,
},
Items: []v1.KeyToPath{
{
Key: v1.TLSCertKey,
Path: kubeadmconstants.FrontProxyCACertName,
},
},
},
},
},
},
}
Expand Down

0 comments on commit 3d9c6eb

Please sign in to comment.