Skip to content

Commit

Permalink
Merge pull request #35 from galal-hussein/rancher_k8s_image
Browse files Browse the repository at this point in the history
Use Rancher Kubernetes image
  • Loading branch information
galal-hussein authored Nov 22, 2017
2 parents 9903d61 + c254de3 commit f447fa0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
10 changes: 5 additions & 5 deletions cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ services:
etcd:
image: quay.io/coreos/etcd:latest
kube-api:
image: quay.io/coreos/hyperkube:v1.7.5_coreos.0
image: rancher/k8s:v1.8.3-rancher2
service_cluster_ip_range: 10.233.0.0/18
extra_args:
v: 4
kube-controller:
image: quay.io/coreos/hyperkube:v1.7.5_coreos.0
image: rancher/k8s:v1.8.3-rancher2
cluster_cidr: 10.233.64.0/18
service_cluster_ip_range: 10.233.0.0/18
scheduler:
image: quay.io/coreos/hyperkube:v1.7.5_coreos.0
image: rancher/k8s:v1.8.3-rancher2
kubelet:
image: quay.io/coreos/hyperkube:v1.7.5_coreos.0
image: rancher/k8s:v1.8.3-rancher2
cluster_domain: cluster.local
cluster_dns_server: 10.233.0.3
infra_container_image: gcr.io/google_containers/pause-amd64:3.0
kubeproxy:
image: quay.io/coreos/hyperkube:v1.7.5_coreos.0
image: rancher/k8s:v1.8.3-rancher2

# all addon manifests MUST specify a namespace
addons: |-
Expand Down
3 changes: 1 addition & 2 deletions services/kubeapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ func removeKubeAPI(host hosts.Host) error {
func buildKubeAPIConfig(host hosts.Host, kubeAPIService v1.KubeAPIService, etcdConnString string) (*container.Config, *container.HostConfig) {
imageCfg := &container.Config{
Image: kubeAPIService.Image,
Cmd: []string{"/hyperkube",
"apiserver",
Entrypoint: []string{"kube-apiserver",
"--insecure-bind-address=127.0.0.1",
"--insecure-port=8080",
"--secure-port=6443",
Expand Down
3 changes: 1 addition & 2 deletions services/kubecontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ func removeKubeController(host hosts.Host) error {
func buildKubeControllerConfig(kubeControllerService v1.KubeControllerService) (*container.Config, *container.HostConfig) {
imageCfg := &container.Config{
Image: kubeControllerService.Image,
Cmd: []string{"/hyperkube",
"controller-manager",
Entrypoint: []string{"kube-controller-manager",
"--address=0.0.0.0",
"--cloud-provider=",
"--leader-elect=true",
Expand Down
3 changes: 1 addition & 2 deletions services/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ func removeKubelet(host hosts.Host) error {
func buildKubeletConfig(host hosts.Host, kubeletService v1.KubeletService, isMaster bool) (*container.Config, *container.HostConfig) {
imageCfg := &container.Config{
Image: kubeletService.Image,
Cmd: []string{"/hyperkube",
"kubelet",
Entrypoint: []string{"kubelet",
"--v=2",
"--address=0.0.0.0",
"--cluster-domain=" + kubeletService.ClusterDomain,
Expand Down
3 changes: 1 addition & 2 deletions services/kubeproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func removeKubeproxy(host hosts.Host) error {
func buildKubeproxyConfig(host hosts.Host, kubeproxyService v1.KubeproxyService) (*container.Config, *container.HostConfig) {
imageCfg := &container.Config{
Image: kubeproxyService.Image,
Cmd: []string{"/hyperkube",
"proxy",
Entrypoint: []string{"kube-proxy",
"--v=2",
"--healthz-bind-address=0.0.0.0",
"--kubeconfig=" + pki.KubeProxyConfigPath,
Expand Down
3 changes: 1 addition & 2 deletions services/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func removeScheduler(host hosts.Host) error {
func buildSchedulerConfig(host hosts.Host, schedulerService v1.SchedulerService) (*container.Config, *container.HostConfig) {
imageCfg := &container.Config{
Image: schedulerService.Image,
Cmd: []string{"/hyperkube",
"scheduler",
Entrypoint: []string{"kube-scheduler",
"--leader-elect=true",
"--v=2",
"--address=0.0.0.0",
Expand Down

0 comments on commit f447fa0

Please sign in to comment.