Documentation ¶
Index ¶
Constants ¶
View Source
const ( AssetPathSecrets = "tls" AssetPathCAKey = "tls/ca.key" AssetPathCACert = "tls/ca.crt" AssetPathAPIServerKey = "tls/apiserver.key" AssetPathAPIServerCert = "tls/apiserver.crt" AssetPathEtcdCA = "tls/etcd-ca.crt" AssetPathEtcdClientCert = "tls/etcd-client.crt" AssetPathEtcdClientKey = "tls/etcd-client.key" AssetPathEtcdPeerCert = "tls/etcd-peer.crt" AssetPathEtcdPeerKey = "tls/etcd-peer.key" AssetPathServiceAccountPrivKey = "tls/service-account.key" AssetPathServiceAccountPubKey = "tls/service-account.pub" AssetPathKubeletKey = "tls/kubelet.key" AssetPathKubeletCert = "tls/kubelet.crt" AssetPathKubeConfig = "auth/kubeconfig" AssetPathManifests = "manifests" AssetPathKubelet = "manifests/kubelet.yaml" AssetPathProxy = "manifests/kube-proxy.yaml" AssetPathKubeFlannel = "manifests/kube-flannel.yaml" AssetPathKubeFlannelCfg = "manifests/kube-flannel-cfg.yaml" AssetPathAPIServerSecret = "manifests/kube-apiserver-secret.yaml" AssetPathAPIServer = "manifests/kube-apiserver.yaml" AssetPathControllerManager = "manifests/kube-controller-manager.yaml" AssetPathControllerManagerSecret = "manifests/kube-controller-manager-secret.yaml" AssetPathControllerManagerDisruption = "manifests/kube-controller-manager-disruption.yaml" AssetPathScheduler = "manifests/kube-scheduler.yaml" AssetPathSchedulerDisruption = "manifests/kube-scheduler-disruption.yaml" AssetPathKubeDNSDeployment = "manifests/kube-dns-deployment.yaml" AssetPathKubeDNSSvc = "manifests/kube-dns-svc.yaml" AssetPathSystemNamespace = "manifests/kube-system-ns.yaml" AssetPathCheckpointer = "manifests/pod-checkpointer.yaml" AssetPathEtcdOperator = "manifests/etcd-operator.yaml" AssetPathEtcdSvc = "manifests/etcd-service.yaml" AssetPathKenc = "manifests/kube-etcd-network-checkpointer.yaml" AssetPathKubeSystemSARoleBinding = "manifests/kube-system-rbac-role-binding.yaml" AssetPathBootstrapManifests = "bootstrap-manifests" AssetPathBootstrapAPIServer = "bootstrap-manifests/bootstrap-apiserver.yaml" AssetPathBootstrapControllerManager = "bootstrap-manifests/bootstrap-controller-manager.yaml" AssetPathBootstrapScheduler = "bootstrap-manifests/bootstrap-scheduler.yaml" AssetPathBootstrapEtcd = "bootstrap-manifests/bootstrap-etcd.yaml" BootstrapSecretsDir = "/etc/kubernetes/bootstrap-secrets" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assets ¶
type Assets []Asset
func NewDefaultAssets ¶
NewDefaultAssets returns a list of default assets, optionally configured via a user provided AssetConfig. Default assets include TLS assets (certs, keys and secrets), and k8s component manifests.
func (Assets) WriteFiles ¶
type Config ¶
type Config struct { EtcdCACert *x509.Certificate EtcdClientCert *x509.Certificate EtcdClientKey *rsa.PrivateKey EtcdServers []*url.URL EtcdUseTLS bool APIServers []*url.URL CACert *x509.Certificate CAPrivKey *rsa.PrivateKey AltNames *tlsutil.AltNames PodCIDR *net.IPNet ServiceCIDR *net.IPNet APIServiceIP net.IP DNSServiceIP net.IP EtcdServiceIP net.IP SelfHostKubelet bool SelfHostedEtcd bool CloudProvider string BootstrapSecretsSubdir string }
AssetConfig holds all configuration needed when generating the default set of assets.
Click to show internal directories.
Click to hide internal directories.