Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for k8s-1.13 #125

Merged
merged 8 commits into from
Jan 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ require (
gopkg.in/vmihailenco/msgpack.v2 v2.9.1 // indirect
gopkg.in/yaml.v2 v2.2.1
gotest.tools v2.1.0+incompatible // indirect
k8s.io/api v0.0.0-20181013020047-475331a8afff
k8s.io/apimachinery v0.0.0-20181022183627-f71dbbc36e12
k8s.io/client-go v9.0.0+incompatible
k8s.io/api v0.0.0-20181121191454-a61488babbd6
k8s.io/apimachinery v0.0.0-20190117220443-572dfc7bdfcb
k8s.io/client-go v10.0.0+incompatible
k8s.io/klog v0.1.0 // indirect
layeh.com/radius v0.0.0-20190109000448-e6d9fd7a048a // indirect
sigs.k8s.io/yaml v1.1.0 // indirect
)
8 changes: 4 additions & 4 deletions images.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ func (i Image) Name() string {

// Container image definitions
const (
EtcdImage = Image("quay.io/cybozu/etcd:3.3.9-4")
EtcdImage = Image("quay.io/cybozu/etcd:3.3.11-1")
ToolsImage = Image("quay.io/cybozu/cke-tools:1.3.0-1")
HyperkubeImage = Image("quay.io/cybozu/hyperkube:1.12.3-2")
HyperkubeImage = Image("quay.io/cybozu/hyperkube:1.13.2-1")
PauseImage = Image("quay.io/cybozu/pause:3.1-2")
CoreDNSImage = Image("quay.io/cybozu/coredns:1.2.5-1")
UnboundImage = Image("quay.io/cybozu/unbound:1.8.1-2")
CoreDNSImage = Image("quay.io/cybozu/coredns:1.3.1-1")
UnboundImage = Image("quay.io/cybozu/unbound:1.8.3-1")
)

// AllImages return container images list used by CKE
Expand Down
6 changes: 3 additions & 3 deletions mtest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ NODE5 = 10.0.0.105
NODE6 = 10.0.0.106
PLACEMAT = /usr/bin/placemat
GINKGO = env GOFLAGS=-mod=vendor $(GOPATH)/bin/ginkgo
MANAGEMENT_ETCD_VERSION = 3.3.9
VAULT_VERSION = 0.11.0
K8S_VERSION = 1.12.3
MANAGEMENT_ETCD_VERSION = 3.3.11
VAULT_VERSION = 1.0.2
K8S_VERSION = 1.13.2
PLACEMAT_DATADIR = /var/scratch/placemat

export HOST1 HOST2 NODE1 NODE2 NODE3 NODE4 NODE5 NODE6 PLACEMAT GINKGO
Expand Down
10 changes: 9 additions & 1 deletion mtest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ How to manually run CKE using placemat

```console
$ chmod 600 mtest_key
$ ssh -i mtest_key cybozu@10.0.0.11
$ ./mssh host-1
```

4. Run `/data/setup-cke.sh` on `host1`.
Expand All @@ -20,3 +20,11 @@ How to manually run CKE using placemat
```

7. To stop placemat, run `sudo pkill placemat`.


If you want to use kubectl, run the following commands on host-vm.

```console
$ ./mssh host-1 /opt/bin/ckecli kubernetes issue > ~/.kube/config
$ ./output/kubectl get nodes
```
4 changes: 4 additions & 0 deletions op/k8s/scheduler_boot.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func SchedulerParams() cke.ServiceParams {
"--kubeconfig=/etc/kubernetes/scheduler/kubeconfig",
"--log-dir=/var/log/kubernetes/scheduler",
"--logtostderr=false",
// for healthz service
"--tls-cert-file=" + op.K8sPKIPath("apiserver.crt"),
"--tls-private-key-file=" + op.K8sPKIPath("apiserver.key"),
"--port=0",
}
return cke.ServiceParams{
ExtraArguments: args,
Expand Down
2 changes: 1 addition & 1 deletion op/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func GetNodeStatus(ctx context.Context, inf cke.Infrastructure, node *cke.Node,
IsHealthy: false,
}
if status.Scheduler.Running {
status.Scheduler.IsHealthy, err = checkHealthz(ctx, inf, node.Address, 10251)
status.Scheduler.IsHealthy, err = checkSecureHealthz(ctx, inf, node.Address, 10259)
if err != nil {
log.Warn("failed to check scheduler health", map[string]interface{}{
log.FnError: err,
Expand Down
12 changes: 12 additions & 0 deletions vendor/github.com/coreos/bbolt/bolt_mips64x.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions vendor/github.com/coreos/bbolt/bolt_mipsx.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions vendor/github.com/ghodss/yaml/.travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/k8s.io/api/admissionregistration/v1alpha1/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 1 addition & 20 deletions vendor/k8s.io/api/admissionregistration/v1alpha1/generated.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/k8s.io/api/admissionregistration/v1beta1/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 1 addition & 20 deletions vendor/k8s.io/api/admissionregistration/v1beta1/generated.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions vendor/k8s.io/api/admissionregistration/v1beta1/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading