Created
April 15, 2015 21:08
-
-
Save pires/a1732b28ec88c418c087 to your computer and use it in GitHub Desktop.
kubernetes flags 0.15.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kube-apiserver \ | |
--allow_privileged=true \ | |
--insecure_bind_address=0.0.0.0 \ | |
--insecure_port=8080 \ | |
--kubelet_https=true \ | |
--secure_port=6443 \ | |
--portal_net=10.100.0.0/16 \ | |
--etcd_servers=http://127.0.0.1:4001 \ | |
--public_address_override=172.17.8.101 \ | |
--cloud_provider=__CLOUDPROVIDER__ | |
--logtostderr=true \ | |
--runtime_config=api/v1beta3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/wget -N -O /opt/bin/kube-register https://github.com/kelseyhightower/kube-register/releases/download/v0.0.2/kube-register-0.0.2-linux-amd64 | |
/opt/bin/kube-register \ | |
--metadata=role=minion \ | |
--fleet-endpoint=unix:///var/run/fleet.sock \ | |
--api-endpoint=http://127.0.0.1:8080 \ | |
--healthz-port=10248 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubelet \ | |
--address=0.0.0.0 \ | |
--port=10250 \ | |
--hostname_override=$public_ipv4 \ | |
--api_servers=172.17.8.101:8080 \ | |
--allow_privileged=true \ | |
--cluster_dns=10.100.0.10 \ | |
--cluster_domain=k8s \ | |
--config=/opt/kubernetes/manifests/ \ | |
--cadvisor_port=4194 \ | |
--port=10250 \ | |
--healthz_bind_address=0.0.0.0 \ | |
--healthz_port=10248 \ | |
--logtostderr=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for posting the gist. One thing I noticed was the kube-register Go code is using v1beta1 api.
Our solution was also using v1beta1 but we were registering with the api server using a POST request. We started getting an error with v0.14.2 about missing required values. "status.Capacity: required value, spec.ExternalID: required value"
According to this document: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/api.md#v1beta1-and-v1beta2-are-deprecated-please-move-to-v1beta3-asap
We should all move to v1beta3 soon. So we are trying to understand the v1beta3 api and convert our call to use that.
I am interested in your thoughts, on using kube-register instead of calling the v1beta3 api by itself.