doc.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. Copyright 2016 The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package certs
  14. /*
  15. PHASE: CERTIFICATES
  16. INPUTS:
  17. From InitConfiguration
  18. .API.AdvertiseAddress is an optional parameter that can be passed for an extra addition to the SAN IPs
  19. .APIServer.CertSANs is an optional parameter for adding DNS names and IPs to the API Server serving cert SAN
  20. .Etcd.Local.ServerCertSANs is an optional parameter for adding DNS names and IPs to the etcd serving cert SAN
  21. .Etcd.Local.PeerCertSANs is an optional parameter for adding DNS names and IPs to the etcd peer cert SAN
  22. .Networking.DNSDomain is needed for knowing which DNS name the internal Kubernetes service has
  23. .Networking.ServiceSubnet is needed for knowing which IP the internal Kubernetes service is going to point to
  24. .CertificatesDir is required for knowing where all certificates should be stored
  25. OUTPUTS:
  26. Files to .CertificatesDir (default /etc/kubernetes/pki):
  27. - ca.crt
  28. - ca.key
  29. - apiserver.crt
  30. - apiserver.key
  31. - apiserver-kubelet-client.crt
  32. - apiserver-kubelet-client.key
  33. - apiserver-etcd-client.crt
  34. - apiserver-etcd-client.key
  35. - etcd/ca.crt
  36. - etcd/ca.key
  37. - etcd/server.crt
  38. - etcd/server.key
  39. - etcd/peer.crt
  40. - etcd/peer.key
  41. - etcd/healthcheck-client.crt
  42. - etcd/healthcheck-client.key
  43. - sa.pub
  44. - sa.key
  45. - front-proxy-ca.crt
  46. - front-proxy-ca.key
  47. - front-proxy-client.crt
  48. - front-proxy-client.key
  49. */