Commit Graph

110 Commits

Author SHA1 Message Date
Kubernetes Submit Queue b040c11281 Merge pull request #3098 from johanneswuerbach/configure-docker-on-coreos
Automatic merge from submit-queue

Configure docker on CoreOS/ContainerOS

While the installation of docker should be skipped, docker should still be
configured to allow overriding the docker config using kops.

Fixes https://github.com/kubernetes/kops/issues/3057

//cc @aledbf
2017-08-03 22:10:40 -07:00
Kubernetes Submit Queue 5577fab602 Merge pull request #3087 from blakebarnett/bdb/add_node_docker_config_secret
Automatic merge from submit-queue

Add `kops create secret dockerconfig` feature

This adds a well-known secret name `dockerconfig` which will automatically
be used if present to create `/root/.docker/config.json` on all nodes. This will
allow private registries to be used for kops hooks as well as any k8s images
without the need to define `imagePullSecrets` in every namespace.

closes https://github.com/kubernetes/kops/issues/2505
2017-08-03 19:33:42 -07:00
Johannes Würbach 798d87da32
Configure docker on CoreOS/ContainerOS
While the installation of docker should be skipped, docker should still be
configured to allow overriding the docker config using kops.

Fixes https://github.com/kubernetes/kops/issues/3057
2017-08-02 13:32:33 +02:00
Blake e093702fc3 Don't error if the dockerconfig isn't present 2017-08-01 16:51:20 -07:00
Blake 4f95fe473f Incorporate review feedback
- Rename to just DockerConfig / dockerconfig everywhere for consistency
- Check if the config is valid JSON
- Update docs
2017-08-01 13:15:19 -07:00
Blake 4d9c69c167 Add documentation and update text fixture 2017-07-29 13:29:28 -07:00
Blake bd779e7570 Move task up so so it applies to all nodes
Add HOME=/root to kubelet sysconfig
2017-07-29 13:04:49 -07:00
Blake 7946f08a08 symlink to /root/.docker/config.json for hooks
move the tasks up so they apply to all nodes
2017-07-29 00:27:50 -07:00
Blake 760311f09b Kubelet $HOME is /var/lib/kubelet
Also don't include the nodedockercfg in all_tokens.csv
2017-07-28 22:03:12 -07:00
Blake 60dc81fe49 Add `kops create secret nodedockercfg` feature
This adds a well-known secret name `nodedockercfg` which will automatically
be used if present to create /root/.docker/config.json on all nodes. This will
allow private registries to be used for kops hooks as well as any k8s images
without the need to define `imagePullSecrets` in every namespace.

closes https://github.com/kubernetes/kops/issues/2505
2017-07-28 17:38:50 -07:00
Rohith b5066c967b Vetting / Formating / Cleanup
- fixed any of the vettting / formatting issues that i'm came across on the update
- removed the commented out lines from the componentconfig as it make its increasingly difficult to find what is supported, what is not and the difference between them.
- added SerializeImagePulls, RegisterSchedulable to kubelet (by default they are ignored)
- added FeatureGates to the kube-proxy

Out of interest can someone point me to where these multi-versioned componentconfig are being used?
2017-07-28 17:16:11 +01:00
Rohith a3ff7dd122 Node Secrets
As present a number of secrets are downloaded to the /src/kubernetes directory regardless of role (master, node). This limits the
the node role to only donwload the ca.crt. The rest are for master nodes only

- removes basic_auth.csv, ca.key, known_tokens.csv, server.cert and server.key leaving only the ca.crt
2017-07-27 17:25:44 +01:00
Hanfei Shen fc50984f09 support china region 2017-07-16 00:57:38 +08:00
Steele Clifton-Berry eb387ac4c6 Also increase fs.inotify.max_user_watches from default. 2017-07-13 15:50:53 +10:00
Steele Clifton-Berry 67e4e0f111 Increase fs.inotify.max_user_instances limit. Fixes #2912 2017-07-12 16:35:19 +10:00
Chris Love f1f6507fa8 Merge pull request #2808 from alexandrst88/aws-sg-fix
Add SG parameter into AWS cloud-config
2017-07-06 14:20:14 -06:00
Chris Love 20535248b4 Merge pull request #2773 from justinsb/authn_integration
Initial support for authentication (kopeio)
2017-07-06 14:11:22 -06:00
alexandrst88 6b81385584 Add SG parameter into AWS cloud-config 2017-07-04 15:44:21 +03:00
Jasmine Hegman 61f72a63c5 Change logrotate compress to delaycompress
As per https://github.com/fluent/fluentd/issues/780#issuecomment-178065328
2017-06-29 17:25:46 -07:00
Alex Simenduev 5644854b4b Change to EtcdBuilder in ETCD model 2017-06-25 02:30:44 +03:00
Justin Santa Barbara 752150ef22 Initial support for authentication (kopeio)
Still experimental, so not doing a flag yet.
2017-06-20 00:15:39 -04:00
Justin Santa Barbara d2df318ecc Move CloudProvider to kops API
This avoids a circular reference when breaking up the fi package
2017-06-17 16:27:07 -04:00
Murali Reddy e872dbcb86 add support for kube-router as CNI networking provider
fixes #2606

Most part of the changes are similar to current supported CNI networking
provider. Kube-router also support IPVS bassed service proxy which can
be used as replacement for kube-proxy. So the manifest for kube-router
included with this patch enables kube-router to provide pod-to-pod
networking, IPVS based service proxy and ingress pod firewall.
2017-06-09 17:01:31 +05:30
Otto Yiu c22b3cc035 Fix log rotation of apiserver audit logs
Fixed an oops I created in #2494 where log rotation does not function
as expected.

The kube-apiserver first has to rename the existing audit log prior to a new one
being created. Renaming is not possible when the audit file is mounted
directly as the host path. kube-apiserver will return a 'Device or
resource busy' error when it tries to do so. So instead, we mount the
directory of the path instead of the file itself. Also remove the
creation of an empty audit log file as that is no longer necessary for
Docker to mount a directory.

"If an audit log file already exists, Kubernetes appends new audit logs
to that file. Otherwise, Kubernetes creates an audit log file at the
location you specified in audit-log-path. If the audit log file exceeds
the size you specify in audit-log-maxsize, Kubernetes will rename the
current log file by appending the current timestamp on the file name
(before the file extension) and create a new audit log file. Kubernetes
may delete old log files when creating a new log file; you can configure
how many files are retained and how old they can be by specifying the
audit-log-maxbackup and audit-log-maxage options."

Source: https://kubernetes.io/docs/tasks/debug-application-cluster/audit/

Tested this on Kubernetes 1.6 and with an audit log path specified to
be:
/var/log/kube-apiserver-audit.log

The kube-apiserver container has this mounted:
/dev/xvda1 on /var/log type ext4 (rw,relatime,data=ordered)
2017-06-01 13:43:06 -07:00
chrislovecnm 56e11e0750 fixing directory perms 2017-05-17 19:36:08 -06:00
Chris Love f15b317b47 Merge pull request #2523 from dolftax/fix-kube-dir-permission
[Fixes #2466] Creates .kube dir at /home/admin with group/owner as admin
2017-05-11 13:37:20 -06:00
Jaipradeesh Janarthanan 16c7a36b20 [Fixes #2466] Creates .kube dir at /home/admin with group/owner as admin
Signed-off-by: Jaipradeesh Janarthanan <jaipradeesh@gmail.com>
2017-05-08 12:30:54 +05:30
Otto Yiu 71d7be772a Expose kube-apiserver audit log to host volume
This commit exposes kube-apiserver's audit log to the host as a host
mapping.

PR #1872 gave the ability to users to define a custom log path for the
apiserver to write its audit logs to. Prior to this commit, the log file
would stay within the container's filesystem, and getting access to it from
outside the container was a nuisance.

This change allows a logging aggregator, like fluentd, to be able
to read and tail this log from outside the kube-apiserver container.
2017-05-04 15:20:29 -07:00
Justin Santa Barbara eddd73549c Use LB IP address for private dns 2017-04-25 01:32:27 -04:00
Justin Santa Barbara c8b18be9dd Gossip backed DNS 2017-04-25 01:32:21 -04:00
Abrar Shivani 3707436f2f Change vm_uuid location 2017-04-20 23:38:32 -07:00
Abrar Shivani e191f7dd96 Add vm-uuid in cloud-config file required by Kubernetes vSphere CloudProvider 2017-04-20 23:37:40 -07:00
Miao Luo 67771470cc Minor fix for gofmt ci test. 2017-04-20 23:37:40 -07:00
Abrar Shivani 2da57ef142 Support for vSphere Cloud Provider < v1.5.3 2017-04-20 23:37:40 -07:00
Abrar Shivani 5889814c90 Support for vSphere Cloud Provider 2017-04-20 23:33:21 -07:00
Miao Luo 6b010c4c5e Enable CoreDNS in nodeup/protokube (#6)
* Enable CoreDNS in nodeup/protokube.

* Address comments.
2017-04-20 23:33:21 -07:00
prashima e51e841d0c Added vSphere volumes to protokube, updated vSphere testing doc and makefile. (#1)
* Add vSphere volumes to protokube. Update vSphere testing doc and makefile.

* Updated vsphere_volume to get correct IP. Addressed comments.
2017-04-20 23:33:20 -07:00
SandeepPissay 82f9f0668d vsphere initial support. 2017-04-20 23:31:21 -07:00
Justin Santa Barbara 4dcc6ad067 Merge pull request #2370 from luomiao/userdefined-s3endpoint
Support user-defined s3 endpoint
2017-04-20 01:17:08 -04:00
Chris Love 6e81a8c1b5 Merge pull request #2260 from justinsb/hooks_poc
PoC of hooks
2017-04-19 16:00:24 -06:00
Justin Santa Barbara 57deb17562 Enable CertificateSigner API on k8s 1.6 2017-04-19 16:10:03 -04:00
Miao Luo 76437a77d4 Support user-defined s3 endpoint. 2017-04-18 11:27:07 -07:00
Justin Santa Barbara 1909b88097 Pass --network-plugin-dir for kubenet
kubenet continues to look there rather than --cni-bin-dir
2017-04-10 10:01:45 -04:00
Eric Hole 76e98087ac Merge pull request #2330 from justinsb/remove_cni_tag
Replaces UsesCNI with logic
2017-04-10 08:34:09 -04:00
Justin Santa Barbara 391a9b1897 Replaces UsesCNI with logic 2017-04-10 00:07:40 -04:00
Eric Hole c3b794edcd Merge pull request #2166 from justinsb/touch_kubeapiserver_log_to_code
Move touching kubeapiserver log file to code
2017-04-09 09:51:29 -04:00
Justin Santa Barbara 76f7665ed1 Apply gofmt 2017-04-08 01:53:09 -04:00
Justin Santa Barbara 7ba283f5e3 Merge pull request #2172 from waldman/feature/issue-2171
Add AWS CloudConfig DisableSecurityGroupIngress Configuration Parameter
2017-04-08 01:52:38 -04:00
Justin Santa Barbara 8287a75fec Move touching kubeapiserver log file to code 2017-04-07 22:43:59 -04:00
Chris Love c5daf400ba Merge pull request #2283 from justinsb/docker_1_12_6
Update to docker 1.12.6 for k8s 1.6
2017-04-06 13:34:28 -06:00