k3sup | bootstrap K3s over SSH in < 60s 🚀 | Continuous Deployment library
kandi X-RAY | k3sup Summary
kandi X-RAY | k3sup Summary
k3sup is a light-weight utility to get from zero to KUBECONFIG with k3s on any local or remote VM. All you need is ssh access and the k3sup binary to get kubectl access immediately. The tool is written in Go and is cross-compiled for Linux, Windows, MacOS and even on Raspberry Pi. How do you say it? Ketchup, as in tomato.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of k3sup
k3sup Key Features
k3sup Examples and Code Snippets
Community Discussions
Trending Discussions on k3sup
QUESTION
I've accidently deleted kube-proxy from my k3s cluster. How can I restore it? Any object type is non-existent anymore, this command gives an empty result:
...ANSWER
Answered 2022-Mar-17 at 22:09Kubernetes allows to reinstall kube-proxy
, so the docs for reinstalling kube-proxy told me to launch this command:
QUESTION
Something wrong happend with my RPi 4 cluster based on k3sup.
Everything works as expected until yesterday when I had to reinstall master node operating system. For example, I have a redis installed on master node and then some pods on worker nodes. My pods can not connect to redis via DNS: redis-master.database.svc.cluster.local
(but they do day before).
It throws an error that can not resolve domain when I test with busybox like:
...ANSWER
Answered 2022-Jan-16 at 15:05There was one more thing that was not mentioned. I'm using OpenVPN with NordVPN server list on master node, and use a privoxy for worker nodes.
When you install and run OpenVPN before running kubernetes master, OpenVPN add rules that block kubernetes networking. So, coredns does not work and you can't reach any pod via IP as well.
I'm using RPi 4 cluster, so for me it was good enough to just re-install master node, install kubernetes at first and then configure openvpn. Now everything is working as expected.
It's good enough to order your system units by adding After
or Before
in service definition. I have VPN systemd service that looks like below:
QUESTION
I'd like to deploy a single app to multiple servers in one time.
I'm using Kubernetes
and K3S
to easily deploy containers.
Basically, I have a master server that I run and multiple servers that are localed in my customers facilities.
Master server was initialized with the following command:
...ANSWER
Answered 2021-Jul-29 at 10:06Here there are two different things that we need to consider.
If the requirement is just to run more number of replicas
of the application
a change to the deployment
template in the helm
chart or through values
you can pass number of minimum replicas
need to be working in the cluster.
Reference documentation for deployments
Coming to next thing, if the requirements is just to run application across all the nodes existing in the cluster, Daemonsets
is the workload which gives the capability to run across all the existing nodes.
Reference documentation for daemonsets
Again if you are using helm
to deploy, appropriate templates for either daemonsets
or deployments
need to be added or modified based on the existing contents of the helm
chart.
There are also different workloads k8s
supports so based on requirements they can be picked appropriately.
QUESTION
I've deployed a small K3S cluster with a master and two workers:
The VMs were made with Multipass
:
ANSWER
Answered 2021-Jul-29 at 08:48Since your service is Cluster Ip you can not access the service out of Kubernetes cluster.
You have to expose your service as Node port or Loadbalancer.
https://kubernetes.io/docs/concepts/services-networking/service/
however, for testing and debugging locally you can use this command :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install k3sup
You can setup a server and stop here, or go on to use the join command to add some "agents" aka nodes or workers into the cluster to expand its compute capacity. Provision a new VM running a compatible operating system such as Ubuntu, Debian, Raspbian, or something else. Make sure that you opt-in to copy your registered SSH keys over to the new VM or host automatically. Note: You can copy ssh keys to a remote VM with ssh-copy-id user@IP.
Run k3sup:
--cluster - start this server in clustering mode using embedded etcd (embedded HA)
--skip-install - if you already have k3s installed, you can just run this command to get the kubeconfig
--ssh-key - specify a specific path for the SSH key for remote login
--local-path - default is ./kubeconfig - set the file where you want to save your cluster's kubeconfig. By default this file will be overwritten.
--merge - Merge config into existing file instead of overwriting (e.g. to add config to the default kubectl config, use --local-path ~/.kube/config --merge).
--context - default is default - set the name of the kubeconfig context.
--ssh-port - default is 22, but you can specify an alternative port i.e. 2222
--k3s-extra-args - Optional extra arguments to pass to k3s installer, wrapped in quotes, i.e. --k3s-extra-args '--no-deploy traefik' or --k3s-extra-args '--docker'. For multiple args combine then within single quotes --k3s-extra-args '--no-deploy traefik --docker'.
--k3s-version - set the specific version of k3s, i.e. v0.9.1
--ipsec - Enforces the optional extra argument for k3s: --flannel-backend option: ipsec
--print-command - Prints out the command, sent over SSH to the remote computer
--datastore - used to pass a SQL connection-string to the --datastore-endpoint flag of k3s. You must use the format required by k3s in the Rancher docs.
Now try the access:
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page