mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
data/data/bootstrap: use loopback kubeconfig for API access
This commit is contained in:
@@ -71,7 +71,7 @@ then
|
||||
cp cvo-bootstrap/bootstrap/* bootstrap-manifests/
|
||||
cp cvo-bootstrap/manifests/* manifests/
|
||||
## FIXME: CVO should use `/etc/kubernetes/bootstrap-secrets/kubeconfig` instead
|
||||
cp auth/kubeconfig /etc/kubernetes/kubeconfig
|
||||
cp auth/kubeconfig-loopback /etc/kubernetes/kubeconfig
|
||||
|
||||
touch cvo-bootstrap.done
|
||||
fi
|
||||
|
||||
@@ -4,7 +4,7 @@ Wants=bootkube.service
|
||||
After=bootkube.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/approve-csr.sh /opt/openshift/auth/kubeconfig
|
||||
ExecStart=/usr/local/bin/approve-csr.sh /opt/openshift/auth/kubeconfig-loopback
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
@@ -6,7 +6,7 @@ ConditionPathExists=!/opt/openshift/.openshift.done
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/openshift/openshift
|
||||
ExecStart=/usr/local/bin/openshift.sh /opt/openshift/auth/kubeconfig
|
||||
ExecStart=/usr/local/bin/openshift.sh /opt/openshift/auth/kubeconfig-loopback
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
Reference in New Issue
Block a user