• Kubernetes Submit Queue's avatar
    Merge pull request #47606 from cheftako/requestCAFile · b00b6b97
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 38751, 44282, 46382, 47603, 47606)
    
    Working on fixing #43716.
    
    This will create the necessary certificates.
    On GCE is will upload those certificates to Metadata.
    They are then pulled down on to the kube-apiserver.
    They are written to the /etc/src/kubernetes/pki directory.
    Finally they are loaded vi the appropriate command line flags.
    The requestheader-client-ca-file can be seen by running the following:-
    kubectl get ConfigMap extension-apiserver-authentication
    --namespace=kube-system -o yaml
    Minor bug fixes.
    Made sure AGGR_MASTER_NAME is set up in all configs.
    Clean up variable names.
    Added additional requestheader configuration parameters.
    Added check so that if there is no Aggregator CA contents we won't start
    the aggregator with the relevant flags.
    
    **What this PR does / why we need it**:
    This PR creates a request header CA. It also creates a proxy client cert/key pair.
    It causes these files to end up on kube-apiserver and set the CLI flags so they are properly loaded.
    Without it the customer either has to set them up themselves or re-use the master CA which is a security vulnerability.
    Currently this creates everything on GCE.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43716
    
    **Special notes for your reviewer**:
    This is a reapply of pull/47094 with the GKE issue resolved.
    
    **Release note**: None
    b00b6b97
Name
Last commit
Last update
..
addons Loading commit data...
aws Loading commit data...
centos Loading commit data...
gce Loading commit data...
gke Loading commit data...
images Loading commit data...
juju Loading commit data...
kubemark Loading commit data...
lib Loading commit data...
libvirt-coreos Loading commit data...
local Loading commit data...
openstack-heat Loading commit data...
photon-controller Loading commit data...
saltbase Loading commit data...
skeleton Loading commit data...
vagrant Loading commit data...
vsphere Loading commit data...
windows Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
clientbin.sh Loading commit data...
common.sh Loading commit data...
get-kube-binaries.sh Loading commit data...
get-kube-local.sh Loading commit data...
get-kube.sh Loading commit data...
kube-down.sh Loading commit data...
kube-push.sh Loading commit data...
kube-up.sh Loading commit data...
kube-util.sh Loading commit data...
kubeadm.sh Loading commit data...
kubectl.sh Loading commit data...
log-dump.sh Loading commit data...
options.md Loading commit data...
restore-from-backup.sh Loading commit data...
test-e2e.sh Loading commit data...
test-network.sh Loading commit data...
test-smoke.sh Loading commit data...
update-storage-objects.sh Loading commit data...
validate-cluster.sh Loading commit data...