Commit Graph

629 Commits

Author SHA1 Message Date
SenXuDC
cc8e8401e2 fix static check in cluster/images/etcd-version-monitor 2020-01-15 21:31:33 +08:00
Kubernetes Prow Robot
9295fdbf5a
Merge pull request #84146 from RainbowMango/pr_fix_etcd_version_monitor_readme
Update etcd-version-monitor readme and yaml file.
2019-12-19 12:39:56 -08:00
Jordan Liggitt
995d408334 Clean up conformance tar test data 2019-12-12 21:05:28 -05:00
notpad
dcf80e31ac Migrate Kubemark to distroless 2019-11-16 17:49:26 +08:00
Krishnakumar R(KK)
dfdfd964e3 Quick steps for generating hyperkube image 2019-11-12 08:01:46 -08:00
Davanum Srinivas
0e99cd912b
Script based hyperkube
Update bazel based build and make the containers match as well.
2019-11-06 09:11:26 -05:00
Kubernetes Prow Robot
e1d3cc74e5
Merge pull request #84329 from jingyih/update_etcd_server_to_3.4
Update default etcd server to 3.4.3
2019-10-30 02:30:52 -07:00
Jingyi Hu
706cde51c5 Update default etcd server to 3.4.3 2019-10-28 18:29:37 -07:00
Kubernetes Prow Robot
09f453ff83
Merge pull request #83987 from wenjiaswe/etcd_client_3_4_2
Update etcd client to v3.4.3 in k8s v1.17
2019-10-25 08:29:39 -07:00
Kubernetes Prow Robot
08237c703c
Merge pull request #84221 from wuyafang/remove_promhttp_from_etcd
remove reference to promhttp in etcd-version-monitor
2019-10-24 22:56:05 -07:00
Kubernetes Prow Robot
6237c00652
Merge pull request #84166 from johnSchnake/conformanceNoEarlyExit
Ensure script saves results even when tests fail
2019-10-24 22:55:53 -07:00
Wenjia Zhang
660b17d0ae Pin dependencies and update vendors 2019-10-24 14:09:24 -07:00
Wenjia Zhang
3b274fad2a Replace github.com/coreos/etcd by go.etcd.io/etcd 2019-10-24 14:09:24 -07:00
Matt Matejczyk
686245b876 Fix base image discrepancy when building kubemark.
There are two ways of building kubemark: 1) via Dockerfile and 2) via
bazel.

In CI/CD tests we use the 1) way and use debian:jessie as the base
image.

But if you build kubemark via bazel it will use the discouraged busybox
base image.

This PR fixes that by using debian:jessie everywehre and pinning exact
sha version to make the kubemark image hermetic.
2019-10-24 10:50:10 +02:00
wuyafang
6f0e74a8a1 remove reference to promhttp in etcd-version-monitor 2019-10-24 09:27:10 +08:00
RainbowMango
61c8001244 Fix etcd-version-monitor readme and yaml file. 2019-10-22 12:03:37 +08:00
John Schnake
9a3a051d1c Ensure script saves results even when tests fail
When we run commands that may exit non-zero during normal operation
we need to ensure the script does not exit early and avoid
saving the results.

Signed-off-by: John Schnake <jschnake@vmware.com>
2019-10-21 15:16:11 -05:00
Kubernetes Prow Robot
7cc611b7e0
Merge pull request #83283 from RainbowMango/pr_migrate_etcd_version_monitor_to_metrics
Migrate etcd version monitor to metrics stability framework
2019-10-15 23:04:24 -07:00
Joe Betz
c92bd5e7b5 Upgrade to etcd server 3.3.17 2019-10-13 17:17:15 -07:00
RainbowMango
7cbd6bf9ea Update bazel by hack/update-bazel.sh 2019-09-29 15:57:27 +08:00
RainbowMango
fe6c700146 Migrate etcd version monitor to metrics stability framework 2019-09-29 15:39:24 +08:00
chenyaqi01
66be69bb0e replace bytes.Compare() with bytes.Equal() 2019-09-27 10:08:49 +08:00
hwdef
951aa8e69a add-err-handling-in-images/etcd/migrate 2019-09-15 00:11:35 +08:00
Kubernetes Prow Robot
9592869783
Merge pull request #82064 from RainbowMango/pr_cleanup_testtar_testdata
Cleanup cluster/images/conformance/go-runner test data after test done
2019-09-11 10:39:00 -07:00
Davanum Srinivas
8ca2436bdb
Fix failure running make build test in cluster/images/etcd
Change-Id: I5072d06402d211c17c8c5fb952e193bd1e57c07d
2019-08-30 22:06:41 -04:00
Davanum Srinivas
8fbfdf8267
Update default etcd server to 3.3.15 for kubernetes 1.16
Change-Id: I68f1a5e5339d83077a1a9f312c4e6e33848886c5
2019-08-30 21:29:45 -04:00
Gyuho Lee
93b9545f48 vendor: update with "update-vendor.sh" script
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-08-29 08:46:02 -07:00
Gyuho Lee
3ad4fedede cluster/.../etcd/migrate: block etcd client creation until connection is up
The new etcd balancer (>3.3.14, 3.4.0) uses an asynchronous resolver for
endpoints. Without "WithBlock", the client may return before the
connection is up.

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-08-29 08:38:29 -07:00
RainbowMango
6c46135ff5 Cleanup UT test data after test done. 2019-08-28 15:16:17 +08:00
hwdef
296705b9c0 fix cluster/images/conformance/go-runner/tar_test.go 2019-08-22 11:32:18 +08:00
Kubernetes Prow Robot
133f37814c
Merge pull request #79722 from randomvariable/etcd-world-executable
Make etcd world-executable in Docker image
2019-08-12 12:11:04 -07:00
Erik Wilson
2242718e17 Run ginkgo in foreground, elminiate wait & pgrep
Use bash process substitution for sending ginkgo output through tee,
allowing easy capture of the ginkgo exit code and avoiding use of wait
or pgrep.

For #78699
2019-07-31 00:53:08 -07:00
David Xia
fabfd950b1
cleanup: fix some log and error capitalizations
Part of https://github.com/kubernetes/kubernetes/issues/15863
2019-07-20 18:26:16 -04:00
Davanum Srinivas
88b0be7355
Update revision number for the image 2019-07-11 21:20:37 -04:00
Davanum Srinivas
f58f126715
Remove support for etcd2 from cluster/images/etcd image
Removes etcd2 code and images.
Etcd2 is no longer supported as of 1.13, so rollback and management
tools for etcd2 should not be shipped any longer. If it is still desired
the older versions of the image can be used.

Change-Id: I516c40067f0a57c42d2a6ab4612071c5e556a005
2019-07-11 21:20:24 -04:00
Naadir Jeewa
b1b7ea3229
etcd: Add comment re: SELinux
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-04 10:13:37 +01:00
Naadir Jeewa
8c27ac488a
etcd: Change perms in Makefile, not Dockerfile 2019-07-04 10:06:34 +01:00
Naadir Jeewa
bdcea67730
etcd: Ensure etcd binaries are world executable
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-04 10:05:18 +01:00
Naadir Jeewa
3783aa5051
etcd: Allow Makefile to be used on SELinux systems
Adds check for SELinux and then adds the :z parameter to the volume
mounts in order to work on SELinux enabled systems such as Fedora.

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-03 23:28:18 +01:00
Naadir Jeewa
42f566ae58
etcd: Ensure etcd binaries are world executable
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-03 16:49:25 +01:00
Dave Chen
c60181317e Address couple of issue on image build for ARM arch
- `GOARM` should not be hardcoded
- `GOARM` needn't be set when the `ARCH` is not `arm`
- make it also possible to build binary within `agnhost` dir as well
- fix image build failure when the user is root

Signed-off-by: Dave Chen <dave.chen@arm.com>
2019-07-03 16:56:23 +08:00
Kubernetes Prow Robot
e79dcc2174
Merge pull request #79284 from johnSchnake/conformanceGoRunner
Adds an optional golang runner to the conformance test image
2019-07-02 15:41:11 -07:00
Kubernetes Prow Robot
da0f51ffed
Merge pull request #78820 from haosdent/fix_typos
Fix typos.
2019-07-01 15:09:20 -07:00
John Schnake
b3f5a086ab Adds an optional golang runner to the conformance test image
Adds a go app which runs the e2e tests with ginkgo.

 - Supports all the existing env vars of the bash script
 - Improved flow control to avoid and better report issues
regarding the process PID
 - Adds flags for modifying where to find the test binary and
ginkgo binary so that you can run it locally
 - Adds 3 flags for specifying extra args before the double-dash,
extra args after the double-dash, and the seperator to use between
values in those env vars. This allows setting arbitrary, complex
values for use on the command such as flags which include spaces
or other characters.
2019-07-01 16:26:13 -05:00
Kubernetes Prow Robot
ee4776d7ec
Merge pull request #78889 from qingsenLi/k8s-190611
use klog.Info instead of klog.Infof when had no format
2019-06-19 13:02:20 -07:00
Haosdent Huang
7ce6e71891 Fix typos. 2019-06-11 01:52:14 +08:00
qingsenLi
872da8a467 use klog.Info instead of klog.Infof when had no format 2019-06-08 03:04:01 +08:00
Kenichi Omichi
bb95ec0f68 Enable API operation log on conformance job
To verify all conformance tests call GA APIs only without alpha,
beta APIs, this enables API operation log on the conformance job.
One concern is this makes e2e.log huge. So to consider it, the
original size of e2e.log is 112,909[1] before applying this.

[1]: https://gcsweb.k8s.io/gcs/kubernetes-jenkins/pr-logs/pull/70639/pull-kubernetes-conformance-image-test/1116565046130905089/artifacts/
2019-06-03 20:47:15 +00:00
Yuwen Ma
1f0f050fde Update etcd* version to use latest released images. 2019-05-13 17:28:40 -07:00
Yuwen Ma
23469d6b04
Rebase etcd-empty-dir-cleanup to debian-base
Busybox has more severe CVE issues.
This is part of the effort described in kep kubernetes/enhancements#900, we can't change the ibase image to distroless directly since a bash script is used.
Moved to debian-base and put it as a temp exception for now.
2019-04-12 15:59:23 -07:00
Kubernetes Prow Robot
f1acf4ad94
Merge pull request #75514 from tedyu/master
Use go idiomatic to replace loop
2019-04-04 00:40:50 -07:00
John Schnake
4fec7c7568 Finish saving test results on failure
The conformance image should be saving its results
regardless of the results of the tests. However,
with errexit set, when ginkgo gets test failures
it exits 1 which prevents saving the results
for Sonobuoy to pick up.

Fixes: #76036
2019-04-03 08:38:43 -05:00
yuwenma
529b20aadd rebase etcd to k8s debian-base 2019-03-29 18:59:55 -07:00
Kubernetes Prow Robot
8af1bf313e
Merge pull request #75317 from jihoon-seo/patch-1
Update cluster/images/hyperkube/README.md
2019-03-20 20:35:37 -07:00
Ted Yu
793fd74a42 Use go idiomatic to replace loop 2019-03-20 11:40:26 -07:00
Kubernetes Prow Robot
66bb1215c7
Merge pull request #75310 from chi-xu/20190313
Correct a spelling error
2019-03-20 09:53:11 -07:00
Jihoon Seo
f5a66f8c13
Update cluster/images/hyperkube/README.md
Add missing period between 'components' and `hyperkube`.
Add line separation between 2 sentences.
2019-03-13 12:01:30 +09:00
xuchi
d0e15aed2c Correct a spelling error 2019-03-13 09:39:13 +08:00
ymlong
8e04d61488 Correcting spelling errors 2019-03-08 10:19:13 +08:00
Davanum Srinivas
200af47128
Stop waiting on conformance image pod when it fails
Change-Id: I516833167f8e0aaa0e7962c1d6bdbe2ca422dc6e
2019-03-07 11:03:05 -05:00
Kubernetes Prow Robot
bd8eeaaaaf
Merge pull request #74468 from ixdy/bazel-cgo-crossbuild
bazel: improve multi-arch support for docker image artifacts
2019-03-06 20:35:11 -08:00
Jeff Grafton
8495f7c9ed bazel: add docker_push rules 2019-03-06 12:35:33 -08:00
Jeff Grafton
d7c2c2a606 bazel: refactor multi-arch container builds into starlark 2019-03-06 11:40:33 -08:00
Lubomir I. Ivanov
fe2301f17d conformace/run_e2e.sh: pass shellcheck and autodetect ginkgo nodes
- for ginkgo parallel mode pass -p to autodetect ginkgo nodes.
- disable parallel mode by default (false).
- use provider "skeleton" instead of "local".
- make run_e2e.sh pass shellcheck.
2019-03-05 01:32:57 +02:00
Kubernetes Prow Robot
79e8a29544
Merge pull request #74852 from dims/expand-reviewers-approvers-add-label
Expand reviewers/approvers and add labels for conformance image
2019-03-04 13:25:50 -08:00
Jeff Grafton
c98b3edb88 bazel: make conformance and hyperkube images multiarch 2019-03-03 21:09:22 -08:00
Davanum Srinivas
b3adf5bd0d
Expand reviewers/approvers and add labels for conformance image
Change-Id: I6e13d262a8bf97ada89227a853debe58876c212a
2019-03-02 13:46:27 -05:00
Davanum Srinivas
87e87dd25b
Apparently conformance tests have to run serially
There are 10+ conformance tests marked [Serial], So we can't run things
in parallel by default.

Change-Id: I58afbb356899fb38caf4f9f6704bfb47f745b338
2019-03-02 13:30:00 -05:00
Kubernetes Prow Robot
3bb22edef8
Merge pull request #74808 from dims/showcase-the-available-options-in-manifest
Showcase conformance images options in the manifest
2019-03-01 20:34:53 -08:00
Kubernetes Prow Robot
738d29b96c
Merge pull request #74767 from yuwenma/rebase-image
Rebase etcd-version-monitor base image to distroless.
2019-03-01 19:14:24 -08:00
Aaron Crickenberger
388a345efc Use no skip regex for conformance 2019-03-01 16:35:27 -08:00
Davanum Srinivas
da566ad647
Showcase conformance images options in the manifest
The Dockerfile has a few more options, let's surface that in the
manifest. Also use the same defaults in the manifest as the Dockerfile
itself.

Change-Id: Ib7419cf7999430db15f39ac414c80ee362fcda76
2019-03-01 16:39:28 -05:00
Davanum Srinivas
9d7d682760
Better detection of binaries for conformance image
Change-Id: Id33a0827e8cb1e3369544eea3335c80c89780786
2019-02-28 22:00:28 -05:00
Yuwen Ma
fd2b57926e Rebase etcd-version-monitor base image to distroless. 2019-02-28 17:06:37 -08:00
John Schnake
03d0e86117 Add support for dryRun option to kube-conformance image
A common issue users run into is wanting a list of tests
a certain regexp will run, without actually running it.

ginkgo supports this with the dryRun flag but it was not
exposed via the kube-conformance image. This change
will set the flag if the E2E_DRYRUN environment variable
is set.

Fixes #74727
2019-02-28 09:21:04 -06:00
Davanum Srinivas
23b33f5c85
Switch to k8s.gcr.io (from staging)
Change-Id: Ib0d6f681be3537f0cbfcae1dc254f1c42a04be66
2019-02-27 08:54:45 -05:00
Davanum Srinivas
87d9903aaf
Add a script to run the conformance image and pull results
Change-Id: I1eb673fe37b5e8a719f9095473765c80fb7f2347
2019-02-27 07:38:43 -05:00
Davanum Srinivas
94ad1dfb11
Better manifest for running conformance image
Change-Id: I137180ed781edd4a9877cabe039e40a72aa71366
2019-02-26 10:29:12 -05:00
Davanum Srinivas
069eeb541b
Simpler make commands for ginkgo/kubectl/e2e.test
Change-Id: I78cff10231eabd53b1fc7bdd1526c861179e135a
2019-02-26 09:18:05 -05:00
Kubernetes Prow Robot
8993fbc543
Merge pull request #74328 from daixiang0/delete-blank
delete all duplicate empty blanks
2019-02-23 01:43:58 -08:00
Xiang Dai
36065c6dd7 delete all duplicate empty blanks
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-23 10:28:04 +08:00
Jeff Grafton
7a938eb541 Create work-around wrappers for pure attribute on go_binary and go_test
This enables cgo when cross-compiling certain tests and binaries to
Linux, while disabling cgo for Windows and Darwin.
2019-02-22 18:08:34 -08:00
Kubernetes Prow Robot
6c1f2077e5
Merge pull request #74192 from xichengliudui/fixshellcheck190218
make more of the shell pass lints
2019-02-20 21:41:25 -08:00
Kubernetes Prow Robot
92e0c231fa
Merge pull request #74107 from truongnh1992/adding-shebang
Adding '/usr/bin/env bash'
2019-02-18 00:23:35 -08:00
Kubernetes Prow Robot
cdbc9d8567
Merge pull request #73686 from ShivangGoswami/master
Cleanup: Audit log and error capitalization
2019-02-17 23:08:39 -08:00
xichengliudui
fd044c5770 make more of the shell pass lints 2019-02-18 00:42:46 -05:00
Nguyen Hai Truong
848da13359 Adding '/usr/bin/env bash'
This commit aims to add '/usr/bin/env bash' as a shebang line
to indicates scripts use bash shell for interpreting.

Signed-off-by: Nguyen Hai Truong <truongnh@vn.fujitsu.com>
2019-02-14 19:18:49 -08:00
Jeff Grafton
e216995ef1 Update repo-infra, bazel-skylib, rules_docker, and rules_go dependencies
Also require bazel 0.18.0+
2019-02-12 17:55:10 -08:00
Kubernetes Prow Robot
b50c643be0
Merge pull request #73540 from rlenferink/patch-5
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Roy Lenferink
b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Tim Allclair
1b9d0c1094 Bump debian-* base image versions to latest 2019-02-04 11:58:51 -08:00
ShivangGoswami
2866b1a3b8 Cleanup: Audit log and error capitalization 2019-02-04 10:59:34 +05:30
Humble Devassy Chirammal
2651c72166 This patch consists of various corrections. (#73060)
* This patch consists of various corrections.

*) Remove unwanted `else` code block
*) Adjust variable intialization.
*) Correct error strings.
*) Use recommended variable increment method.

Signed-off-by: hchiramm <hchiramm@redhat.com>

* Remove cluster/images/cluster-version-monitor from hack/.golint_failures.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-01-22 12:28:59 -08:00
gaorong
f745dd2881 fix kubemark makefile 2018-12-27 21:57:53 +08:00
Joe Betz
862b945e5a Update default etcd server to 3.3.10 for kubernetes 1.13 2018-12-03 11:03:49 -08:00
k8s-ci-robot
e5326f22ea
Merge pull request #70471 from xichengliudui/fix181031
Fix some typos
2018-11-29 00:48:16 -08:00
Davanum Srinivas
954996e231
Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
  * github.com/kubernetes/repo-infra
  * k8s.io/gengo/
  * k8s.io/kube-openapi/
  * github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods

Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
xichengliudui
8477389e7c Fix some types
Fix some typos
2018-10-31 04:05:25 -04:00
Jeff Grafton
003404685d Update to use debian-iptables v11.0 and debian-hyperkube-base 0.12.0 2018-10-24 16:18:53 -07:00
k8s-ci-robot
73c1a92bd9
Merge pull request #69152 from mkumatag/fix_manifest_push
Purge the manifest after the push
2018-10-24 01:06:10 -07:00
Jeff Grafton
c761f779fc Base conformance image on debian-hyperkube-base:0.11.0 and reenable by default 2018-10-16 14:01:23 -07:00
Jeff Grafton
2d46adaec4 Use debian-hyperkube-base:0.11.0 and remove qemu registration 2018-10-16 14:01:23 -07:00
k8s-ci-robot
dad536b41f
Merge pull request #69747 from ixdy/bazel-container-rules
Bazel: stop using deprecated docker_ rules and turn on stamping
2018-10-13 18:18:47 -07:00
k8s-ci-robot
8e4f7812b8
Merge pull request #69368 from dims/upstream-heptio-kube-conformance
upstream heptio/kube-conformance
2018-10-12 19:13:33 -07:00
Jeff Grafton
c34cbb2f70 Bazel: stop using deprecated docker_ rules and turn on stamping 2018-10-12 13:16:38 -07:00
Davanum Srinivas
6830bad2a6
upstream heptio/kube-conformance
Pick up some code from https://github.com/heptio/kube-conformance
Fix up build scripts for the new conformance image
Fix Header template and Copyright to make verify job go green
update README and add execute permissions for script

Change-Id: Ib6509acd816cc2fb3a516bfb8e0ff9e32bff8f79
2018-10-12 15:33:15 -04:00
k8s-ci-robot
1e4bab3376
Merge pull request #69186 from jpbetz/cluster-images-etcd-owners
Add jpbetz and wenjiaswe to cluster/images/etcd OWNERS
2018-10-12 11:19:49 -07:00
Joe Betz
4263c75211 Update etcd client to 3.3.9 2018-10-08 13:34:34 -07:00
Christoph Blecker
97b2992dc1
Update gofmt for go1.11 2018-10-05 12:59:38 -07:00
Joe Betz
0a3bcb92be Add jpbetz and wenjiaswe to cluster/images/etcd OWNERS 2018-09-27 16:25:41 -07:00
Manjunath A Kumatagi
db0aaee57f Purge the manifest after the push 2018-09-27 18:58:16 +05:30
Jeff Grafton
8d8faa3355 Remove etcd 3.2.18 from the etcd image 2018-09-20 13:05:53 -07:00
Jeff Grafton
76256cceff
Continue using go1.8.7 in etcd image 2018-09-19 17:01:08 -07:00
Jeff Grafton
6f9dfe56f1 Update etcd image revision 2018-09-19 16:48:50 -07:00
Manjunath A Kumatagi
934d379aea Manifest for etcd image 2018-09-19 09:45:39 +05:30
Jeff Grafton
b4635a829a Update to use debian-iptables v10.2 and debian-hyperkube-base 0.10.2 2018-09-17 21:10:04 -07:00
Timothy St. Clair
ad2ed0e7df Update default etcd server to 3.2.24 for kubernetes 1.12
Signed-off-by: Timothy St. Clair <timothysc@gmail.com>
2018-09-06 10:24:57 -05:00
Davanum Srinivas
9b43d97cd4
Add Labels to various OWNERS files
Will reduce the burden of manually adding labels. Information pulled
from:
https://github.com/kubernetes/community/blob/master/sigs.yaml

Change-Id: I17e661e37719f0bccf63e41347b628269cef7c8b
2018-08-21 13:59:08 -04:00
Jeff Grafton
37bb013943 Update to debian-iptables v10.1 and hyperkube-base 0.10.1 2018-08-13 22:32:55 -07:00
Jeff Grafton
0dee9f150b Only register qemu-user-static when necessary.
Also, don't re-download qemu-ARCH-static binaries for debian-iptables
2018-08-09 15:57:14 -07:00
foxyriver
5c953681ad more clear err log 2018-07-18 16:10:53 +08:00
Kubernetes Submit Queue
24bc761aec
Merge pull request #62508 from dims/allow-customized-image-for-dockerized-kubelet
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Support containerized kubelet in CI

**What this PR does / why we need it**:

  * Adjust hyperkube Makefile to allow HYPERKUBE_BIN to be
    specified from outside

  * new DOCKER_ROOT variable to specify --root-dir and associated
    volume for kubelet to know where docker directory lives

  * Save the docker logs when we kill the kubelet container

  * Allow customized image for dockerized kubelet and build a Default
    image if one is not specified

  We should allow a custom build using script we have:
  `VERSION="latest" REGISTRY="k8s.gcr.io" hack/dev-push-hyperkube.sh`

  to be used quickly using DOCKERIZE_KUBELET. To do this we remove the
  hard coded `k8s.gcr.io/kubelet` image and introduce a new environment
  variable `KUBELET_IMAGE`.

  Note that we are switching to hyperkube from kubelet as we have a quick
  and easy script to build hyperkube image and load it into local docker
  daemon. This reduces bad hacks like `docker tag
  k8s.gcr.io/hyperkube-amd64:<tag> k8s.gcr.io/kubelet:latest` being used
  by folks today (see 62057)

  * Better cope with PID 0 when running "docker inspect" to look for
    the process id for kubelet container


**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-04-27 21:06:23 -07:00
Krzysztof Siedlecki
e6f14191ce version typo fix 2018-04-25 12:46:33 +02:00
Davanum Srinivas
f2959ab2b0 Support containerized kubelet in CI
* Adjust hyperkube Makefile to allow HYPERKUBE_BIN to be
    specified from outside

  * new DOCKER_ROOT variable to specify --root-dir and associated
    volume for kubelet to know where docker directory lives

  * Save the docker logs when we kill the kubelet container

  * Allow customized image for dockerized kubelet and build a Default
    image if one is not specified

  We should allow a custom build using script we have:
  `VERSION="latest" REGISTRY="k8s.gcr.io" hack/dev-push-hyperkube.sh`

  to be used quickly using DOCKERIZE_KUBELET. To do this we remove the
  hard coded `k8s.gcr.io/kubelet` image and introduce a new environment
  variable `KUBELET_IMAGE`.

  Note that we are switching to hyperkube from kubelet as we have a quick
  and easy script to build hyperkube image and load it into local docker
  daemon. This reduces bad hacks like `docker tag
  k8s.gcr.io/hyperkube-amd64:<tag> k8s.gcr.io/kubelet:latest` being used
  by folks today (see 62057)

  * Better cope with PID 0 when running "docker inspect" to look for
    the process id for kubelet container
2018-04-24 10:19:50 -04:00
Joe Betz
a795cb61bc Bump etcd default server version to 3.2.18 2018-04-11 21:12:44 -07:00
Joe Betz
dc4d92e154 Reimplement migrate-if-needed.sh in go 2018-04-10 09:19:30 -07:00
Kubernetes Submit Queue
ee99895645
Merge pull request #61357 from rphillips/fixes/add_udev_to_hyperkube
Automatic merge from submit-queue (batch tested with PRs 61848, 61188, 56363, 61357, 61838). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

add udev to hyperkube and bump versions

**What this PR does / why we need it**: Adds udev to the hyperkube to fix GCE and OpenStack volume mounts.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #61356 
Fixes #43515
Fixes https://github.com/coreos/bugs/issues/2385

**Special notes for your reviewer**:

/cc @kubernetes/sig-node-bugs @kubernetes/sig-node-pr-reviews 
/cc @ixdy 

**Release note**:
```release-note
NONE
```
2018-03-28 13:52:14 -07:00
Jeff Grafton
d6593e677e Add ixdy, luxas, and mikedanese as OWNERS of hyperkube image 2018-03-28 10:52:41 -07:00
Ryan Phillips
29662114d8 add udev to hyperkube and bump versions 2018-03-28 09:46:51 -07:00
hzxuzhonghu
70e45eccf2 Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
Joe Betz
e2a25f9b54 Bump to etcd 3.1.12 to pick up critical fix 2018-03-09 14:28:23 -08:00
Shyam Jeedigunta
21f5e69f08 Rollback etcd server version to 3.1.11 due to #60589 2018-03-08 13:07:15 +01:00
Kubernetes Submit Queue
891b471064
Merge pull request #60808 from jpbetz/etcd-migrate-tls
Automatic merge from submit-queue (batch tested with PRs 60872, 60808). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Pass in etcd TLS credentials during migrate and rollback

For HA etcd clusters, the `etcd-creds` settings, specifically the `--peer-*` TLS flags that may be included, must be passed in to `start-stop-etcd.sh` in order for the etcd server mode started during migrate and rollback steps to be able to communicate between peers.

The `etcd.manifest` change needs to be backported all the way back to 1.7.

**Release note**:
```release-note
NONE
```
2018-03-07 00:12:49 -08:00
Joe Betz
279ce92e59 Pass in etcd TLS credentials during migrate and rollback 2018-03-05 14:02:58 -08:00
Joe Betz
04c6d0ab26 Bump etcd server patch version to 3.2.16 2018-03-05 13:58:51 -08:00
Kubernetes Submit Queue
ded25445fe
Merge pull request #60173 from jpbetz/migration-downgrade-docs
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Document k8s.gcr.io/etcd image upgrade/downgrade support

Fixes https://github.com/kubernetes/kubernetes/issues/59221
2018-02-28 22:03:38 -08:00
Mike Danese
c0b7364563 remove gcloud docker -- since it's deprecated 2018-02-28 00:24:27 -08:00
Kubernetes Submit Queue
10d50c76b1
Merge pull request #59897 from jpbetz/etcd-version-monitor-grpc-fields
Automatic merge from submit-queue (batch tested with PRs 60214, 58762, 59898, 59897, 60204). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Improve etcd-version-monitor etcd 3.0-3.1 compatibility

In etcd-version-monitor, this remove grpc labels used only in etcd 3.1+ format when translating metric back to 3.0 format
2018-02-22 22:02:40 -08:00
Joe Betz
62ef33744a Document k8s.gcr.io/etcd image upgrade/downgrade support 2018-02-21 16:23:02 -08:00
Kubernetes Submit Queue
96ec318718
Merge pull request #59842 from ixdy/update-rules_go-02-2018
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

 Update bazelbuild/rules_go, kubernetes/repo-infra, and gazelle dependencies

**What this PR does / why we need it**: updates our bazelbuild/rules_go dependency in order to bump everything to go1.9.4. I'm separating this effort into two separate PRs, since updating rules_go requires a large cleanup, removing an attribute from most build rules.

**Release note**:

```release-note
NONE
```
2018-02-19 22:23:05 -08:00
Jeff Grafton
ef56a8d6bb Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
Joe Betz
23b9f65861 In etcd-version-monitor, Remove grpc labels used only in etcd 3 format when translating metric back to 3.0 format 2018-02-15 15:35:51 -08:00
Stephen Augustus
3a8948c027 cluster/images/hyperkube: Fix typo in Dockerfile for aggregator symlink 2018-02-15 17:44:02 -05:00
Joe Betz
746e247e87 Add etcd 3.x minor version rollback support to migrate-if-needed.sh 2018-02-12 15:02:02 -08:00
Kubernetes Submit Queue
d1aded09b0
Merge pull request #59577 from shyamjvs/fix-kubemark-image
Automatic merge from submit-queue (batch tested with PRs 59054, 59515, 59577). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Uniquify kubemark image builds and use new registry format

Solves issues 1 and 3 in https://github.com/kubernetes/kubernetes/issues/59567.

/cc @wojtek-t 

fyi - @thockin @kubernetes/sig-scalability-misc 

```release-note
NONE
```
2018-02-08 12:22:35 -08:00
Shyam Jeedigunta
76c1828c1c
Mark kubemark images w/ random tags to avoid race b/w runs 2018-02-08 17:54:01 +01:00
Shyam Jeedigunta
4a2469ed21
Add shyamjvs to cluster/images/kubemark/OWNERS 2018-02-08 16:31:20 +01:00
Tim Hockin
3586986416 Switch to k8s.gcr.io vanity domain
This is the 2nd attempt.  The previous was reverted while we figured out
the regional mirrors (oops).

New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest.  To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today).  For now the staging is an alias to
gcr.io/google_containers (the legacy URL).

When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.

We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it.  Nice and
visible, easy to keep track of.
2018-02-07 21:14:19 -08:00
Kubernetes Submit Queue
e6f1d42ce4
Merge pull request #59143 from halfcrazy/typo-cluster
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

doc: fix typo in cluster

**What this PR does / why we need it**:
fix typo in cluster

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-02-05 10:47:54 -08:00
halfcrazy
9b64650311 fix typo in cluster 2018-02-03 11:08:06 +08:00
Joe Betz
f0d04b7131 Update etcd server version to 3.2.13 2018-02-02 17:25:13 -08:00
zouyee
ee062f9a1f sync code from copy destination 2018-01-20 14:48:33 +08:00
David McMahon
d65005bdb2 Honor make variable OUT_DIR. 2018-01-03 17:46:03 -08:00
Jeff Grafton
efee0704c6 Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
Tim Hockin
e9dd8a68f6 Revert k8s.gcr.io vanity domain
This reverts commit eba5b6092a.

Fixes https://github.com/kubernetes/kubernetes/issues/57526
2017-12-22 14:36:16 -08:00
Wojciech Tyczynski
484460db9a Build and push 3.1.11 etcd image 2017-12-19 09:49:51 +01:00
Tim Hockin
f7be352a67 gcloud docker now auths k8s.gcr.io by default 2017-12-18 09:18:34 -08:00
Tim Hockin
eba5b6092a Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
Kubernetes Submit Queue
d0a667bdd3
Merge pull request #56386 from dixudx/fix_gnu_cp
Automatic merge from submit-queue (batch tested with PRs 56386, 57204, 55692, 57107, 57177). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

don't use gnu cp features in building etcd image

**What this PR does / why we need it**:
> cp: illegal option -- t

use gnu-cp to copy files

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #56383

**Special notes for your reviewer**:
/assign @ixdy @mkumatag 

**Release note**:

```release-note
None
```
2017-12-17 04:19:36 -08:00
Joe Betz
a0874620f1 Improve etcd-version-monitor metrics proxying, add etcd 3.1 gprc metric support 2017-12-06 09:33:57 -08:00
Di Xu
4d1319d111 use gnu-cp in building etcd image 2017-12-06 09:30:20 +08:00
Davanum Srinivas
f16b00b321 update build/root/WORKSPACE and cluster/images/hyperkube/Makefile for the new tag 2017-11-29 14:15:58 -05:00
Jeff Grafton
055b123978 Update debian-hyperkube-base to 0.7 2017-11-20 13:13:38 -08:00
Kubernetes Submit Queue
08ce10ee82
Merge pull request #54250 from ixdy/debian-hyperkube-base-ssh
Automatic merge from submit-queue (batch tested with PRs 54635, 54250, 54657, 54696, 54700). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add openssh-client back into the debian-hyperkube-base image

**What this PR does / why we need it**: adds `openssh-client` back into the `debian-hyperkube-base` image. This was removed in #48365, but is apparently needed by the gitRepo volume plugin.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #54129

**Special notes for your reviewer**:
I haven't yet pushed this image, so builds will fail. If this looks good, I'll push and re-trigger tests.

**Release note**:

```release-note
Add openssh-client back into the hyperkube image. This allows the gitRepo volume plugin to work properly.
```

/assign @luxas @tallclair
2017-10-27 14:38:23 -07:00
Jeff Grafton
71624d85fa Add openssh-client to the debian-hyperkube-base image 2017-10-26 15:03:01 -07:00
Maru Newby
adc338d330 Remove all traces of federation 2017-10-26 13:37:37 -07:00
Kubernetes Submit Queue
1e760baf20 Merge pull request #54363 from zouyee/hyperkube-1
Automatic merge from submit-queue (batch tested with PRs 54363, 54333). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

[images/hyperkube]add kube-aggerator link

**What this PR does / why we need it**:
add kube-aggerator link
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```NONE
```
2017-10-23 11:30:21 -07:00
zouyee
4ee28e5e36 [images/hyperkube]add kube-aggerator link 2017-10-22 21:01:31 +08:00
Di Xu
7ec31b67c8 bump debian-hyperkube-base to 0.5 since CNI gets bumped 2017-10-21 11:47:33 +08:00
Jeff Grafton
aee5f457db update BUILD files 2017-10-15 18:18:13 -07:00
Kubernetes Submit Queue
3f9d0ac867 Merge pull request #53915 from krzyzacy/fix-bazel
Automatic merge from submit-queue (batch tested with PRs 52883, 52183, 53915, 53848). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Make kubemark push a manual target

fix `bazel build //...`

/assign @ixdy @mikedanese
2017-10-13 17:33:33 -07:00
Sen Lu
c2bad6e969 Make kubemark push a manual target 2017-10-13 14:08:55 -07:00
Kubernetes Submit Queue
97e002352f Merge pull request #53543 from seemethere/remove_tty_from_etcd_builds
Automatic merge from submit-queue (batch tested with PRs 53507, 53772, 52903, 53543). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Removes TTY flag from etcd image build process

**What this PR does / why we need it**:
etcd image building fails when running without TTY with `the input device is not a TTY`

Related:
- https://stackoverflow.com/q/43099116/5285457

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-10-13 13:53:21 -07:00
Kubernetes Submit Queue
9af47db908 Merge pull request #53642 from edevil/add_kmod
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Ensure base image includes the modprobe binary

**What this PR does / why we need it**:

Includes the kmod package so that "modprobe" is available for kubelet and kube-proxy.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53396
2017-10-12 18:08:00 -07:00
André Cruz
8fc297c1f9 Ensure base image includes the modprobe binary 2017-10-12 21:45:32 +01:00
Sen Lu
e0bcfd29ac Try to use bazel to build/push kubemark image 2017-10-11 22:11:36 -07:00
Kubernetes Submit Queue
6e2249b784 Merge pull request #52866 from ixdy/bazel-hyperkube-image
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Build hyperkube image using Bazel

**What this PR does / why we need it**: Before we had the hyperkube base image, it was difficult to build the hyperkube with Bazel. Now that we have the base image with all the necessary dependencies, this has become trivial.

This will enable federation jobs etc on prow.

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

/assign @BenTheElder @mikedanese @spxtr 
cc @luxas @pipejakob
2017-10-07 23:52:43 -07:00
Eli Uriegas
f475cac898 Removes TTY flag from etcd image build process
Fails when running without TTY with `the input device is not a TTY`

Related:
- https://stackoverflow.com/q/43099116/5285457

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-10-06 12:04:00 -07:00
Hongchao Deng
39e5a56691 etcd: update version to 3.1.10 2017-10-02 12:27:46 -07:00
Jeff Grafton
01252967f1 Build hyperkube image with Bazel 2017-09-21 14:30:41 -07:00
Ryan Phillips
7d979dd3d9 bump tags 2017-09-20 12:58:29 -05:00
Kubernetes Submit Queue
16edd13b48 Merge pull request #51794 from wojtek-t/fix_migration_script
Automatic merge from submit-queue

Make etcd prefix configurable in migration script

Followup from https://github.com/kubernetes/kubernetes/pull/49629

@jpbetz
2017-09-04 14:25:11 -07:00
Kubernetes Submit Queue
5d72d5c31d Merge pull request #50602 from dixudx/user_arm64v8_instead_aarch64
Automatic merge from submit-queue (batch tested with PRs 50602, 51561, 51703, 51748, 49142)

Use arm32v7|arm64v8 images instead of the deprecated armhf|aarch64 image organizations

**What this PR does / why we need it**:

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50601

**Special notes for your reviewer**:
/assign @ixdy @jbeda @zmerlynn
**Release note**:

```release-note
Use arm32v7|arm64v8 images instead of the deprecated armhf|aarch64 image organizations
```
2017-09-03 01:12:04 -07:00
Wojciech Tyczynski
896d53c443 Make etcd prefix configurable in migration script 2017-09-01 15:49:45 +02:00
Jeff Grafton
6458f34627 Run multiarch/qemu-user-static:register before building cross-arch images 2017-08-22 12:20:38 -07:00
Di Xu
ec2fbbc85d bump new version due to base image changed 2017-08-21 14:51:44 +08:00
Di Xu
d4aa1611bd use more-specific arm64v8 instead of deprecated aarch64 organization 2017-08-21 10:18:19 +08:00
Di Xu
25a786f74d use more-specific arm32v7 instead of deprecated armhf organization 2017-08-21 10:17:43 +08:00
Kubernetes Submit Queue
bdf78980cc Merge pull request #49629 from wojtek-t/delete_v2_data_before_3_1_upgrade
Automatic merge from submit-queue (batch tested with PRs 50139, 49629)

Remove etcd v2 data when upgrading to 3.1.* version

@jpbetz @lavalamp
2017-08-14 04:01:52 -07:00
Jeff Grafton
a7f49c906d Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
Jeff Grafton
33276f06be Use buildozer to remove deprecated automanaged tags 2017-08-11 09:31:50 -07:00
Kubernetes Submit Queue
4a8d041c4c Merge pull request #50088 from wojtek-t/ha_etcd_migration
Automatic merge from submit-queue

Fix etcd migration for HA clusters

@jpbetz 

Fix #43600
2017-08-04 09:44:14 -07:00
Kubernetes Submit Queue
d15baf69e1 Merge pull request #48969 from ixdy/update-kazel
Automatic merge from submit-queue (batch tested with PRs 50103, 49677, 49449, 43586, 48969)

Run kazel on the entire tree

**What this PR does / why we need it**: part of #47558: auto-generate `BUILD` files on the entire tree, since this is what `gazelle` does, and it'll make subsequent reviews easier if less is changing.

**Release note**:

```release-note
NONE
```
/assign
/release-note-none
2017-08-03 16:43:41 -07:00
Wojciech Tyczynski
b559a95eb2 Remove v2 data when upgrading to 3.1.* version 2017-08-03 14:49:00 +02:00
Wojciech Tyczynski
e050e7a867 Fix etcd migration for HA clusters 2017-08-03 14:43:52 +02:00
Jeff Grafton
3579017b86 Run hack/update-bazel.sh to generate BUILD files 2017-08-02 18:33:25 -07:00
Jeff Grafton
66b9ae7cd8 Rebase hyperkube image on debian-hyperkube-base, based on debian-base. 2017-07-25 15:03:38 -07:00
Kubernetes Submit Queue
0d6d025c45 Merge pull request #45040 from aaronlevy/cephcommon
Automatic merge from submit-queue (batch tested with PRs 45040, 48960)

Add ceph-common to hyperkube image

**What this PR does / why we need it**:

Adds the ceph-common package to the hyperkube image
2017-07-25 14:40:41 -07:00
Jian Zhang
5660043c2e support to build hyperkube image on ppc64le 2017-06-22 00:53:05 +00:00
Christoph Blecker
79a7dc218e
Bump etcd base image to go1.7.6 2017-05-29 09:38:27 -07:00