Disable automountServiceAccountToken in the ACME HTTP01 solver Pod
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
This commit is contained in:
parent
a0683195f9
commit
e727df6c1d
@ -175,6 +175,11 @@ func (s *Solver) buildDefaultPod(ch *cmacme.Challenge) *corev1.Pod {
|
||||
OwnerReferences: []metav1.OwnerReference{*metav1.NewControllerRef(ch, challengeGvk)},
|
||||
},
|
||||
Spec: corev1.PodSpec{
|
||||
// The HTTP01 solver process does not need access to the
|
||||
// Kubernetes API server, so we turn off automounting of
|
||||
// the Kubernetes ServiceAccount token.
|
||||
// See https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting
|
||||
AutomountServiceAccountToken: pointer.Bool(false),
|
||||
NodeSelector: map[string]string{
|
||||
"kubernetes.io/os": "linux",
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user