k3sup | bootstrap K3s over SSH in < 60s 🚀 | Continuous Deployment library

 by   alexellis Go Version: 0.12.13 License: Non-SPDX

kandi X-RAY | k3sup Summary

kandi X-RAY | k3sup Summary

k3sup is a Go library typically used in Devops, Continuous Deployment, Docker, Raspberry Pi applications. k3sup has no bugs, it has no vulnerabilities and it has medium support. However k3sup has a Non-SPDX License. You can download it from GitHub.

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

            kandi-support Support

              k3sup has a medium active ecosystem.
              It has 5317 star(s) with 340 fork(s). There are 69 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 210 have been closed. On average issues are closed in 261 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of k3sup is 0.12.13

            kandi-Quality Quality

              k3sup has 0 bugs and 0 code smells.

            kandi-Security Security

              k3sup has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              k3sup code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              k3sup has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              k3sup releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 1572 lines of code, 48 functions and 14 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of k3sup
            Get all kandi verified functions for this library.

            k3sup Key Features

            No Key Features are available at this moment for k3sup.

            k3sup Examples and Code Snippets

            No Code Snippets are available at this moment for k3sup.

            Community Discussions

            QUESTION

            Deleted kube-proxy
            Asked 2022-Mar-17 at 22:09

            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:09

            Kubernetes allows to reinstall kube-proxy, so the docs for reinstalling kube-proxy told me to launch this command:

            Source https://stackoverflow.com/questions/71471879

            QUESTION

            Connection refused from pod to pod via service clusterIP
            Asked 2022-Jan-16 at 15:05

            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:05

            There 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:

            Source https://stackoverflow.com/questions/69461150

            QUESTION

            Use Kubernetes to deploy a single app to multiple servers
            Asked 2021-Jul-29 at 10:06

            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:06

            Here 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.

            Source https://stackoverflow.com/questions/68573550

            QUESTION

            Kubernetes service is not reachable throw browser
            Asked 2021-Jul-29 at 08:48

            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:48

            Since 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 :

            Source https://stackoverflow.com/questions/68572680

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install k3sup

            k3sup is distributed as a static Go binary. You can use the installer on MacOS and Linux, or visit the Releases page to download the executable for Windows.
            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

            Before contributing code, please see the CONTRIBUTING guide. Note that k3sup uses the same guide as inlets.dev. Both Issues and PRs have their own templates. Please fill out the whole template. All commits must be signed-off as part of the Developer Certificate of Origin (DCO).
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link