Brian Downs
4c3ec907ab
remove k8s daemon config from setup hook in favor of specific fields from the config ( #2206 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
4 years ago
Erik Wilson
720197b9b1
Fix linting issues
4 years ago
Brad Davidson
c980fa68a0
Update helm-controller for HelmChartConfig CRD ( #2114 )
...
* Update helm-controller for HelmChartConfig CRD
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
4 years ago
Brian Downs
324bb55986
add ctx to hook, handle hook errors
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
4 years ago
Brian Downs
fa2c1422b3
change name of variable
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
4 years ago
Brian Downs
a4b2953017
add setup hook capabilities for rke2
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
4 years ago
Brad Davidson
dfd0f9d1a6
Correctly report and propagate kubeconfig write failures
...
As seen in issues such as #15 #155 #518 #570 there are situations where
k3s will fail to write the kubeconfig file, but reports that it wrote it
anyway as the success message is printed unconditionally. Also, secondary
actions like setting file mode and creating a symlink are also attempted
even if the file was not created.
This change skips attempting additional actions, and propagates the
failure back upwards.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
4 years ago
Hussein Galal
f5ee757b86
Add cluster dns configmap ( #1785 )
5 years ago
Darren Shepherd
a18d387390
Refactor clustered DB framework
5 years ago
Darren Shepherd
7e59c0801e
Make program name a variable to be changed at compile time
5 years ago
Darren Shepherd
cb4b34763e
Merge pull request #1759 from ibuildthecloud/background
...
Start kube-apiserver in the background
5 years ago
Darren Shepherd
072396f774
Start kube-apiserver in the background
...
In rke2 everything is a static pod so this causes a chicken and egg situation
in which we need the kubelet running before the kube-apiserver can be
launched. By starting the apiserver in the background this allows us to
do this odd bootstrapping.
5 years ago
Darren Shepherd
2f5ee914f9
Add supervisor port
...
In k3s today the kubernetes API and the /v1-k3s API are combined into
one http server. In rke2 we are running unmodified, non-embedded Kubernetes
and as such it is preferred to run k8s and the /v1-k3s API on different
ports. The /v1-k3s API port is called the SupervisorPort in the code.
To support this separation of ports a new shim was added on the client in
then pkg/agent/proxy package that will launch two load balancers instead
of just one load balancer. One load balancer for 6443 and the other
for 9345 (which is the supervisor port).
5 years ago
Darren Shepherd
3c8e0b4157
No longer use basic auth for default admin account
5 years ago
galal-hussein
3f927d8006
Revert "Replace traefik with nginx"
...
This reverts commit 9a17033095
.
5 years ago
galal-hussein
717b5a765e
use multiarch image for nginx
5 years ago
galal-hussein
9a17033095
Replace traefik with nginx
5 years ago
Erik Wilson
0aeea78060
Merge pull request #1444 from KnicKnic/k3s_build_windows
...
K3s build windows (no agents)
5 years ago
Knic Knic
2346ccc63f
get build on windows and get api_server to work
5 years ago
Darren Shepherd
782004bec9
Create pidns for rootless
5 years ago
Erik Wilson
0374c4f63d
Add --disable flag
5 years ago
Darren Shepherd
bf57a7f419
Don't start node controller if coredns is not deployed
5 years ago
Darren Shepherd
91cacb3a14
Fix server join issues
5 years ago
Darren Shepherd
ba240d0611
Refactor tokens, bootstrap, and cli args
5 years ago
galal-hussein
7c60285435
Fix master role label in ha setups
5 years ago
galal-hussein
56e0e5ad7e
Add default local storage provisioner
5 years ago
galal-hussein
b1891f445b
Add master role label on startup
5 years ago
Darren Shepherd
8f597ba168
Don't run leader elections on controllers when no leader election
5 years ago
Erik Wilson
e6067314c9
Localhost -> 127.0.0.1
5 years ago
YAMAMOTO Takashi
88e668cf6f
Simplify startWrangler a bit
...
We no longer make dynamiclistener generate CA certs.
5 years ago
Erik Wilson
2c9444399b
Refactor certs
6 years ago
Darren Shepherd
30c3c42f93
Add missing ConfigMap cache to helm apply
6 years ago
galal-hussein
94b5a22dda
Disable the svclb controller nodeploy for svclb is passed
6 years ago
Darren Shepherd
d94a346a1e
Switch to wrangler-api and helm-controller
6 years ago
Darren Shepherd
c0702b0492
Port to wrangler
6 years ago
Darren Shepherd
0c18c5a92a
Merge pull request #461 from galal-hussein/fix_alternate_kubeconfig
...
Create symlink for kubeconfig when --write-kubeconfig is selected
6 years ago
galal-hussein
4c6cf29e02
Create symlink for kubeconfig when --write-kubeconfig is selected
6 years ago
galal-hussein
36bab003a3
Make kubeconfig not world readable and issue warning with kubectl wrapper
6 years ago
galal-hussein
d9f958ceeb
Add no_proxy environment to server
6 years ago
Erik Wilson
31cf2bc9ee
Add coredns entries for nodes
6 years ago
Marco Mancini
b445bad171
Add --cluster-domain option
6 years ago
Darren Shepherd
046a817818
Add rootless support
6 years ago
galal-hussein
d255574150
Add bind address server config
6 years ago
Erik Wilson
1d61576e54
Fix linting issues
6 years ago
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 .
6 years ago
Erik Wilson
ffcc9c0c9c
Package static assets
...
Include static Helm assets in the build process needed for air-gap
6 years ago
Vladimir Zorin
392cfb1231
Add basic templating support for manifests
6 years ago
Darren Shepherd
ef4e34b289
Remove dead code
6 years ago
Darren Shepherd
b07727ae24
Move default config location to /etc/rancher/k3s/k3s.yaml
6 years ago
Darren Shepherd
1d666d9515
Add helm controller
6 years ago