Erik Wilson
c9b62c9a90
Remove CA Certs/Key from listenerconfig storage
2019-06-25 15:04:04 -07:00
Erik Wilson
93f6690f26
Graceful upgrade token to server CA
2019-06-25 15:04:04 -07:00
Erik Wilson
1e035820bf
Generated data
2019-06-25 15:04:04 -07:00
Erik Wilson
2c9444399b
Refactor certs
2019-06-25 15:04:04 -07:00
Darren Shepherd
30c3c42f93
Add missing ConfigMap cache to helm apply
2019-06-19 13:32:14 -07:00
galal-hussein
94b5a22dda
Disable the svclb controller nodeploy for svclb is passed
2019-06-18 23:05:16 +02:00
Darren Shepherd
e0d2bd3e2d
Merge branch 'pr505'
2019-06-14 13:28:19 -07:00
Darren Shepherd
9f4e43fea6
Merge pull request #506 from AkihiroSuda/bump-up-rootlesskit
...
rootless: use built-in port driver
2019-06-14 13:23:14 -07:00
Erik Wilson
2b44679352
Generated data
2019-06-14 09:37:59 -07:00
galal-hussein
17d8708ca5
Add storage backend flags
2019-06-12 00:48:47 +02:00
Akihiro Suda
5a51a8de45
rootless: use built-in port driver
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-05-29 15:01:38 +09:00
Akihiro Suda
490d6aefe0
rootless: fix mounting /var/lib/cni
...
k3s was unable to start up when /var/lib/cni is missing on the host.
Fix https://github.com/rancher/k3s/issues/470
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-05-29 14:04:28 +09:00
Erik Wilson
199f673676
Merge pull request #479 from galal-hussein/add_storage_backend_options
...
Add MySQL and Postgress support
2019-05-28 16:57:38 -07:00
Darren Shepherd
7ee554013a
Update generated code
2019-05-26 22:35:57 -07:00
Darren Shepherd
d94a346a1e
Switch to wrangler-api and helm-controller
2019-05-26 22:32:24 -07:00
Darren Shepherd
c0702b0492
Port to wrangler
2019-05-26 22:28:50 -07:00
Darren Shepherd
16f7aaab66
Update vendor
2019-05-25 23:44:33 -07:00
Darren Shepherd
4b4dd1b59b
Merge pull request #454 from galal-hussein/node_labels_taints
...
Expose node labels and taints and add node roles
2019-05-25 00:39:55 +02:00
Darren Shepherd
a999cd43aa
Merge pull request #459 from galal-hussein/check_time
...
Check if server time before 1/1/1970
2019-05-25 00:38:53 +02:00
Darren Shepherd
0c18c5a92a
Merge pull request #461 from galal-hussein/fix_alternate_kubeconfig
...
Create symlink for kubeconfig when --write-kubeconfig is selected
2019-05-25 00:38:18 +02:00
Darren Shepherd
06b1acb324
Merge pull request #460 from galal-hussein/kubeconfig_readable
...
change permissions of kubeconfig and issue warning with kubectl wrapper
2019-05-25 00:36:30 +02:00
galal-hussein
e9cd8adbf6
Add Storage endpoint option
2019-05-16 01:05:24 +02:00
galal-hussein
4c6cf29e02
Create symlink for kubeconfig when --write-kubeconfig is selected
2019-05-10 21:08:28 +02:00
galal-hussein
483df6fd82
Check if server time before 1/1/1980
...
Check
2019-05-10 20:29:42 +02:00
Wenxuan Zhao
f0f57c1e44
Allow using built-in modules
...
Signed-off-by: Wenxuan Zhao <viz@linux.com>
2019-05-09 12:23:33 -07:00
galal-hussein
36bab003a3
Make kubeconfig not world readable and issue warning with kubectl wrapper
2019-05-09 00:54:52 +02:00
galal-hussein
930093dfe9
Expose node labels and taints and add node roles
2019-05-08 01:47:07 +02:00
Erik Wilson
b0e4228609
Merge pull request #434 from galal-hussein/add_no_proxy
...
Add no_proxy env to server
2019-05-03 15:20:13 -07:00
Erik Wilson
f7376ad979
Update proxy environment for helm controller
...
Add lowercase no_proxy and all_proxy/ALL_PROXY to environment for helm
2019-05-03 11:10:42 -07:00
galal-hussein
d9f958ceeb
Add no_proxy environment to server
2019-05-03 19:44:30 +02:00
haokang.ke
52f845ec84
Make pause image configurable ( #345 )
2019-05-03 10:36:12 -07:00
Darren Shepherd
ea94b1af77
Merge pull request #433 from erikwilson/fix-0.5.0-cert-upgrade-bug
...
Force upgrade of token node cert
2019-05-03 10:35:36 -07:00
Darren Shepherd
5c62dcbb4b
Merge pull request #435 from galal-hussein/svclb_upgrade
...
handle old service lb deployments
2019-05-03 10:34:12 -07:00
galal-hussein
1e33142f29
handle old service lb deployments
2019-05-03 14:51:02 +02:00
galal-hussein
5d8d9e610b
Add timeout to hostname check
2019-05-03 14:41:08 +02:00
Erik Wilson
d5ce19caae
Force upgrade of token node cert
2019-05-02 16:22:42 -07:00
Darren Shepherd
4ec051d032
Merge pull request #422 from galal-hussein/use_cni_with_docker
...
Add cni plugin to kubelet if docker is used
2019-05-02 10:45:34 -07:00
Darren Shepherd
9005fd5176
Merge pull request #423 from galal-hussein/change_threshold
...
Change the stderr threshold for cli
2019-05-02 10:45:21 -07:00
galal-hussein
7e1699cda0
Check if hostname is resolvable before running agent
2019-05-01 22:54:05 +02:00
galal-hussein
fae6df0df0
Change the stderr threshold for cli
2019-05-01 05:23:32 +02:00
galal-hussein
191ac9371a
Add cni plugin to kubelet if docker is used
2019-04-30 22:12:02 +02:00
Darren Shepherd
2950e81c23
Merge pull request #371 from warmchang/nf_conntrack
...
🔧 modprobe nf_conntrack
2019-04-26 16:01:13 -07:00
Darren Shepherd
9db91d7de3
Merge pull request #369 from erikwilson/node-dns
...
Node DNS & cert registration
2019-04-26 16:00:31 -07:00
Darren Shepherd
875ba289de
Merge pull request #375 from galal-hussein/schedule_svclb
...
Add node selector to service loadbalancer controller
2019-04-26 15:58:33 -07:00
Darren Shepherd
50f405ddfd
Merge pull request #376 from galal-hussein/fix_kubeletarg
...
Fix extra argument with multiple =
2019-04-26 15:57:16 -07:00
Erik Wilson
c9941895d6
Bind kubelet to all interfaces and use webhook auth
2019-04-26 15:02:30 -07:00
galal-hussein
f293e14645
Use NodeSelector when node label is enabled
2019-04-26 20:20:11 +02:00
Erik Wilson
305b596745
Remove node OnCreate
2019-04-26 10:50:33 -07:00
William Zhang
22bd3a3ce7
🔧 nf_conntrack module
...
Signed-off-by: William Zhang <zhang.wanmin@zte.com.cn>
2019-04-26 08:55:48 +08:00
galal-hussein
72d2edc0cb
Fix extra argument with multiple =
2019-04-25 22:49:03 +02:00
Darren Shepherd
9376c39adf
Merge pull request #381 from galal-hussein/containerd_tmpl
...
Add containerd config go template
2019-04-25 13:36:30 -07:00
galal-hussein
bdf8a355e1
Add containerd config go template
2019-04-25 22:17:34 +02:00
Darren Shepherd
6a43f63c70
Merge pull request #388 from galal-hussein/pass_proxy_variable_to_helm
...
Add proxy env to helm controller
2019-04-25 11:33:26 -07:00
Erik Wilson
f584197bba
Save password as text file
2019-04-25 10:53:21 -07:00
galal-hussein
b87684fcb9
Add proxy env to helm controller
2019-04-24 04:27:52 +02:00
Erik Wilson
e64c0298f2
Add cert per-node password authentication
2019-04-23 11:02:35 -07:00
Erik Wilson
055a574fee
Simplify DNS hosts creation
2019-04-22 16:13:16 -07:00
Erik Wilson
1b2db423de
Add node name to node cert generation
2019-04-19 18:20:34 +00:00
Erik Wilson
37dd5cbfd2
Generated data
2019-04-17 22:44:46 +00:00
Erik Wilson
31cf2bc9ee
Add coredns entries for nodes
2019-04-17 22:44:46 +00:00
galal-hussein
c42ea5ec89
Skip any file with no yaml yml or json suffix
2019-04-18 00:13:11 +02:00
Darren Shepherd
be24f837bb
Merge pull request #349 from erikwilson/missing-cgroup-pids-fix
...
Check for cgroup pids support
2019-04-15 15:52:07 -07:00
Erik Wilson
4bba04023d
Check for cgroup pids support
...
If cgroup pids are not supported add a feature-gates flag
SupportPodPidsLimit=false for kubelet.
2019-04-15 22:26:50 +00:00
Darren Shepherd
0e3711b8b7
Merge pull request #339 from km4rcus/cluster-domain-option
...
Add --cluster-domain option
2019-04-15 10:06:07 -07:00
Darren Shepherd
08c3d0d4ef
Merge pull request #250 from yoink00/master
...
Allow flannel interface to be specified on the command line
2019-04-15 10:01:22 -07:00
Stuart Wallace
2268e028a2
Add ability to override flannel interface
2019-04-12 21:06:43 +01:00
Marco Mancini
b445bad171
Add --cluster-domain option
2019-04-12 08:06:35 +02:00
galal-hussein
e5d8d72e59
Fix comment of bind address
2019-04-12 02:30:49 +02:00
Erik Wilson
c48739206a
Enable aggregation layer
...
Configure kube-apiserver, kubelets, and kube-proxy for use with
aggregation layer in order for metrics-server deployment to function
correctly.
2019-04-11 22:43:31 +00:00
Darren Shepherd
046a817818
Add rootless support
2019-04-09 10:38:04 -07:00
galal-hussein
7794528aa1
Add extra flags for server and agent components
2019-04-09 08:20:38 +02:00
Darren Shepherd
a11ac8cc40
Pull in parallel for CRI
2019-04-08 22:50:59 -07:00
Darren Shepherd
8010a24c91
Update generated code for k8s 1.14
2019-04-08 22:50:59 -07:00
Darren Shepherd
841f8d29e6
Ensure CSI is initialized properly when running agent and server combined
2019-04-08 22:50:59 -07:00
Darren Shepherd
3c7e103085
Updates for k8s 1.14
2019-04-08 22:50:59 -07:00
Darren Shepherd
9e80177443
Merge pull request #289 from galal-hussein/add_bind_address
...
Add bind address server config
2019-04-08 22:36:58 -07:00
galal-hussein
e8c5b2498c
Change address to bind-address for scheduler and api
2019-03-31 14:55:56 +02:00
galal-hussein
d255574150
Add bind address server config
2019-03-31 02:10:23 +02:00
Erik Wilson
bb14bcb595
Update generated data
2019-03-26 23:13:54 +00:00
Erik Wilson
a4df9f4ab1
Kubelet resolv.conf DNS update
...
Allow the kubelet resolv-conf flag to be set, or automatically
discovered from /etc/resolv.conf & /run/systemd/resolve/resolv.conf if
no loopback devices are present, or create our own which points to
nameserver 8.8.8.8
2019-03-26 23:13:54 +00:00
Erik Wilson
1d61576e54
Fix linting issues
2019-03-25 16:04:29 -07:00
Darren Shepherd
4463408819
Merge pull request #239 from takmatsu/add-hosts
...
Add tls-san flag
2019-03-25 09:54:21 -07:00
Darren Shepherd
9a57e6fd0f
Merge pull request #257 from mortenlj/master
...
Skip writing manifest when using `--no-deploy`
2019-03-25 09:51:16 -07:00
Erik Wilson
2768f559c1
Fix go fmt error
2019-03-24 12:19:05 -07:00
Morten Lied Johansen
9033891f88
Skip writing manifest when using `--no-deploy`
...
Instead of skipping the manifest when listing the directory, we now skip
creating it in the first place. This allows users to deploy manifests
that replaces the ones bundled, without having to come up with a new
name.
Fixes #230 .
2019-03-23 22:22:58 +01:00
Takeaki Matsumoto
3a6b305455
Change flag name and type
2019-03-23 17:34:55 +00:00
Erik Wilson
9645048a57
Update klipper-helm version
2019-03-22 06:05:26 +00:00
Erik Wilson
8d57fbd430
Change klipper-helm to PullIfNotPresent
...
PullAlways ImagePullPolicy causes issues with offline/airgap support,
so only pull if image is not already present.
2019-03-22 00:10:29 +00:00
Erik Wilson
e75e5171af
Generated bin data
2019-03-20 18:35:25 +00:00
Erik Wilson
ffcc9c0c9c
Package static assets
...
Include static Helm assets in the build process needed for air-gap
2019-03-20 18:35:25 +00:00
Erik Wilson
608f3a4e80
Serve static assets
...
Provide a static assets route for use with helm or other air-gap needs.
2019-03-20 00:24:27 +00:00
Takeaki Matsumoto
9551e1db21
Add advertise-address flag
...
In NAT or LB environment,
we need not just the certs for local ip, but also additional ips.
advertise-address flag enables to add optional ips.
2019-03-18 08:26:23 +00:00
Darren Shepherd
8649243d34
Merge pull request #229 from epicfilemcnulty/Skip-empty-yaml-objects
...
Do not process empty yaml objects (fixes #222 )
2019-03-17 13:01:40 -07:00
Erik Wilson
7e1abf28f1
Short port names for service load balancer
...
If a port name is longer than 15 characters we are unable to create
the associated service load balancer containers. Use our own short
name of `lb-port-{port}` to avoid naming issues.
For rancher/k3s/issues/90
2019-03-14 18:53:00 +00:00
Vladimir Zorin
d1348b9898
Trim whitespaces before checking if line is empty or comment
2019-03-14 14:12:02 +02:00
Vladimir Zorin
567532d74d
Do not process empty yaml objects ( fixes #222 )
2019-03-14 13:36:26 +02:00
Darren Shepherd
2771ae1ba9
Merge pull request #184 from ibuildthecloud/default-ns
...
Assign default namespace if not set in manifests
2019-03-07 13:04:50 -07:00
Darren Shepherd
937b379605
Merge pull request #183 from ibuildthecloud/helm
...
Various helm fixes
2019-03-07 13:04:42 -07:00
Darren Shepherd
9a862610ac
Merge pull request #177 from erikwilson/systemd-notify
...
Enable systemd ready notification for k3s server
2019-03-07 13:04:34 -07:00
Darren Shepherd
a649983228
Any change to helm chart values or values.yaml should upgrade
2019-03-07 13:01:21 -07:00
Darren Shepherd
769c1d5415
Fix manifest polling
2019-03-07 13:01:21 -07:00
Darren Shepherd
bef4115657
Assign default namespace if not set in manifests
2019-03-07 13:00:35 -07:00
Darren Shepherd
6e28ede2f8
Fix containerd debug log env var
2019-03-07 11:20:58 -07:00
Darren Shepherd
fe9a5b1601
Remove spurious error on start
2019-03-07 10:25:21 -07:00
Erik Wilson
107b5f3985
Enable systemd ready notification for k3s server
...
Disables k8s generic api server systemd ready notification and send
our own ready notification after server available and kubeconfig
available.
Make sure we unset the NOTIFY_SOCKET environment variable by passing
`true` to SdNotify so the agent can start containers.
2019-03-07 09:54:04 -07:00
Darren Shepherd
2f3da6af94
Merge pull request #175 from ldez/refactor/load-images
...
refactor: creates preloadImages function.
2019-03-07 09:46:27 -07:00
Fernandez Ludovic
e59bd5d489
refactor: creates loadImages function.
2019-03-07 01:45:52 +01:00
Vladimir Zorin
392cfb1231
Add basic templating support for manifests
2019-03-07 01:22:55 +02:00
Vladimir Zorin
44cce9a76f
Set ClusterDNS to ServiceCIDR network address + 10 when cluster-dns is not provided
2019-03-06 20:41:07 +02:00
Vladimir Zorin
7ad03ad8b0
Add cluster-dns server arg support
2019-03-06 13:16:04 +02:00
Vladimir Zorin
b8c3ff1dab
Add --service-cidr server arg support
2019-03-06 12:37:03 +02:00
Adam Liddell
b430513abf
Enforce lower case hostname for node, references #160
2019-03-05 18:34:24 +00:00
Darren Shepherd
4475456a83
Update pkg/agent/config/config.go
...
Co-Authored-By: juliens <julien.salleyron@gmail.com>
2019-03-04 23:23:17 +01:00
Julien Salleyron
164b89bce4
fix review.
2019-03-04 21:46:37 +01:00
Julien Salleyron
1895eec684
Preload images
2019-03-04 21:34:24 +01:00
Darren Shepherd
0414f97c78
Revert "Enable systemd ready notification for k3s server"
...
This reverts commit c73e9187bb
.
2019-03-04 13:18:20 -07:00
Darren Shepherd
49d0f20e5b
Merge pull request #110 from ibuildthecloud/tokenfile
...
Add --token-file support
2019-03-04 10:13:31 -07:00
Darren Shepherd
ef4e34b289
Remove dead code
2019-03-04 10:10:17 -07:00
Darren Shepherd
8acc17fcf3
Merge branch 'master' into tokenfile
2019-03-04 10:10:01 -07:00
Darren Shepherd
70e6ca4ab8
Support external CRI implementations
2019-03-04 10:08:12 -07:00
Darren Shepherd
3d113ceb2d
Add agent command to server command
2019-03-04 10:08:12 -07:00
Darren Shepherd
964cebb070
Don't return object because double update might revert IP change
2019-03-04 10:08:03 -07:00
Thorsten Schifferdecker
2c398c5d5f
Update server.go
...
fallback to the old --address part and enable the non-tls port to make healthz happy
2019-03-04 10:07:30 -07:00
Thorsten Schifferdecker
35cfc717d3
fix missing ","
2019-03-04 10:07:30 -07:00
Thorsten Schifferdecker
ee2fffb0ca
make the controller-manager and scheduler usable for the
...
componentstatus.
Fixes #126
Signed-off-by: Thorsten Schifferdecker <schifferdecker@b1-systems.de>
2019-03-04 10:07:30 -07:00
Darren Shepherd
91f9472751
Add traefik to no-deploy help text
2019-03-04 10:07:10 -07:00
Darren Shepherd
fdb51c9f53
Cleanup docker cgroup errors in kubelet
2019-03-04 10:06:59 -07:00
Darren Shepherd
e5b7d36c55
Actually pass cluster-cidr on to server
2019-03-04 10:06:37 -07:00
Darren Shepherd
e28e497168
Add --token-file support
2019-03-01 17:07:55 -07:00
Erik Wilson
c73e9187bb
Enable systemd ready notification for k3s server
...
Disables k8s generic api server systemd ready notification and send
our own ready notification after server available and kubeconfig
available.
2019-03-01 10:47:34 -07:00
Sean Duffy
10f1553564
fix 'fannel' typo.
2019-02-28 10:30:45 -07:00
Darren Shepherd
cb5e425457
Set /proc/sys/net/ipv4/ip_forward on agent start
2019-02-23 22:43:59 -07:00
Darren Shepherd
828ce5a24a
Disable watch caching, not needed for sqlite
2019-02-22 19:58:42 -07:00
Darren Shepherd
b07727ae24
Move default config location to /etc/rancher/k3s/k3s.yaml
2019-02-19 09:53:41 -08:00
Darren Shepherd
8690a277ed
Fix ingress
2019-02-14 11:27:26 -07:00
Darren Shepherd
01b3bb315e
Fix version printing on startup
2019-02-07 21:45:31 -07:00
Darren Shepherd
56fae079e5
Update generated code
2019-02-07 21:45:31 -07:00
Darren Shepherd
b6f9045eca
Retry 1000 times on helm failure
2019-02-07 21:45:31 -07:00
Darren Shepherd
91002f1fee
Fix looping on startup while installing addons
2019-02-07 21:45:31 -07:00
Darren Shepherd
5e1ce4aa42
Cache self-signed loopback cert on startup
2019-02-07 21:45:31 -07:00
Darren Shepherd
af96c908da
Disable proxy hostname checks
2019-02-07 21:45:31 -07:00
Darren Shepherd
04c5567346
Validate that memory cgroup exists
2019-02-07 21:45:31 -07:00
Darren Shepherd
8bdd86198c
Fix dest port so it's the same as src port
2019-02-07 21:45:31 -07:00
Darren Shepherd
529aa431d1
Adjust debug logging and write containerd logs to a file
2019-02-07 21:45:31 -07:00
Darren Shepherd
3df9155d02
Monitor endpoint changes to trigger service-lb
2019-02-07 21:45:31 -07:00
Darren Shepherd
793ac4fb89
Add crictl
2019-02-07 21:45:31 -07:00
Darren Shepherd
84756df8a2
Only run two service-lb if there are more than 1 nodes ready
2019-02-04 22:04:33 -07:00
Darren Shepherd
bd269f8d3e
Update generated code
2019-02-04 16:47:53 -07:00
Darren Shepherd
1d666d9515
Add helm controller
2019-02-04 16:47:53 -07:00
Darren Shepherd
e832588662
Add embedded service load balancer
2019-02-04 16:47:53 -07:00
Darren Shepherd
400225e73d
Prepopulate known IPs in TLS
2019-02-04 16:47:53 -07:00
Darren Shepherd
529e22ef80
Disable leader election for now
2019-02-04 16:47:53 -07:00
Darren Shepherd
1826084b24
Add ping handler
2019-02-04 16:47:53 -07:00
Darren Shepherd
1502ad2530
Package serialized version of openapi
2019-01-25 22:09:46 -07:00
Darren Shepherd
93841ffbcb
Support kubectl symlink and avoid data in home dir
2019-01-25 22:09:46 -07:00
Darren Shepherd
3f2a951564
Ensure that br_netfilter module is loaded
2019-01-25 22:09:46 -07:00
Darren Shepherd
84b6c461b9
Fix go vet issue
2019-01-24 10:52:04 -07:00
Darren Shepherd
6fa7f5b3ae
Clean up build scripts
...
Switch binaries to armhf suffix to be more clean on the on
architecture
2019-01-24 10:51:37 -07:00
Darren Shepherd
287e0f44c9
Prepare for initial release
2019-01-22 14:20:29 -07:00
Darren Shepherd
62c62cc7b4
Continued refactoring
2019-01-11 21:52:30 -07:00
Darren Shepherd
9bb7c27c62
Initial Commit
2019-01-01 01:23:01 -07:00