https://rancher.com/ logo
Join the conversationJoin Slack
Channels
academy
amazon
arm
azure
cabpr
chinese
ci-cd
danish
deutsch
developer
elemental
epinio
espanol
events
extensions
fleet
français
gcp
general
harvester
harvester-dev
hobbyfarm
hypper
japanese
k3d
k3os
k3s
k3s-contributor
kim
kubernetes
kubewarden
lima
logging
longhorn-dev
longhorn-storage
masterclass
mesos
mexico
nederlands
neuvector-security
office-hours
one-point-x
onlinemeetup
onlinetraining
opni
os
ozt
phillydotnet
portugues
rancher-desktop
rancher-extensions
rancher-setup
rancher-wrangler
random
rfed_ara
rio
rke
rke2
russian
s3gw
service-mesh
storage
submariner
supermicro-sixsq
swarm
terraform-controller
terraform-provider-rancher2
terraform-provider-rke
theranchcast
training-0110
training-0124
training-0131
training-0207
training-0214
training-1220
ukranian
v16-v21-migration
vsphere
windows
Powered by Linen
k3s
  • h

    handsome-toddler-59547

    06/10/2022, 9:35 AM
    Hi. I'm building a brand new k3s cluster. Currently I have it up and running along with Ceph. I will be installing a variety of opensource services (e.g. NGINX). I'll also be setting up custom built services. In a past K3S and Vanilla K8S clusters I also instantiated a private docker registry within the cluster to serve custom images for those custom services. I know in recent releases k8s has stepped away from the docker toolsuite and is solidifying around containerd, and CRI-O. Since I have flexibility to build the exact cluster I want, I am looking for advice. Questions I have? Should I use containerd, or CRI-O? Does k3s support both? What tools (other than docker) should I consider for building compliant container images? Rather than deploy a private docker registry in my k3s cluster is there an alternative recommended registry that I should consider using?
    c
    n
    • 3
    • 11
  • h

    handsome-toddler-59547

    06/11/2022, 2:40 PM
    Hi. I've got a simple public image in dockerhub. I have no problem pushing or pulling this image using docker. I'm trying to use it in my k3s cluster. I see the following error:
    Events:
      Type     Reason     Age   From               Message
      ----     ------     ----  ----               -------
      Normal   Scheduled  7s    default-scheduler  Successfully assigned default/test-59697b49db-tgmw2 to worker1
      Normal   Pulling    105s  kubelet            Pulling image "dsargrad/test:0.1.0"
      Warning  Failed     103s  kubelet            Failed to pull image "dsargrad/test:0.1.0": rpc error: code = Unknown desc = failed to pull and unpack image "<http://docker.io/dsargrad/test:0.1.0|docker.io/dsargrad/test:0.1.0>": failed to copy: httpReadSeeker: failed open: failed to do request: Get "<https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/c8/c852233570204549536abaa9a881803c38ef6192a370d7791bd480e7102d7560/data?verify=1654961268-HeAOL1x8aj7nmL5RUXQv1ApRkvY%3D>": x509: certificate has expired or is not yet valid: current time 2022-06-10T13:32:23-04:00 is before 2022-06-11T00:00:00Z
      Warning  Failed     103s  kubelet            Error: ErrImagePull
      Normal   BackOff    102s  kubelet            Back-off pulling image "dsargrad/test:0.1.0"
      Warning  Failed     102s  kubelet            Error: ImagePullBackOff
    c
    • 2
    • 6
  • h

    handsome-evening-66321

    06/13/2022, 6:21 PM
    hello! I’ve got a question about the k3s images: is there supposed to be a
    v1.21.13-k3s1
    image? it doesn’t seem to exist: https://hub.docker.com/r/rancher/k3s/tags?page=1&amp;name=1.21.13-k3s1
    c
    • 2
    • 2
  • h

    hallowed-plumber-70367

    06/14/2022, 3:24 AM
    Hi, I was wondering how I can set up K3s on a cluster where the nodes are on different networks. I'm using K3s in a project where my worker nodes are running on edge devices, and my control node is running in the cloud.
    c
    b
    • 3
    • 2
  • l

    lively-refrigerator-33439

    06/14/2022, 12:57 PM
    Quick and probably easy question - can Rancher deploy k3s clusters? I know it can manage them but I’m wondering how people manage rollouts at scale. Thanks.
    n
    • 2
    • 1
  • f

    freezing-engineer-98215

    06/14/2022, 1:55 PM
    Hi, I have two interfaces, ens2 external and ens5 internal vpc, I wanted my cluster to use the internal network, and to achieve that I had to add flags, but I'm not sure if I'm missing something or if I'm making changes that are not required:
    Server : not sure if it's needed to change the service-cidr  & cluster-dns
    ExecStart=/usr/local/bin/k3s server --data-dir /var/lib/rancher/k3s 
                --flannel-iface "ens5" 
                --kube-scheduler-arg  address=${server_ip} 
                --kubelet-arg address=${server_ip} 
                --bind-address ${server_ip} 
                --cluster-cidr 172.17.0.0/16 
                --service-cidr 172.18.0.0/16 --cluster-dns 172.18.0.10 
                --advertise-address ${server_ip} --tls-san value ${server_ip}
    nodes : only defined the interface i wanted it to use
    ExecStart=/usr/local/bin/k3s agent --server https://{{ k3s_server_address }}:6443 --token {{token}} --flannel-iface "ens5"
    b
    • 2
    • 3
  • f

    fancy-jackal-96583

    06/14/2022, 3:40 PM
    Does it look like I upgraded right? But It's stil 1.23? I deployed update to newest stable version. I don't know if 1.24 is? Btw I am very green
    g
    • 2
    • 68
  • r

    rich-zoo-49735

    06/15/2022, 5:19 PM
    Has anyone had any luck configuring specific cipher suites for traefik v1 in K3s? The default list of ciphers includes
    TLS_RSA_WITH_3DES_EDE_CBC_SHA
    which comes with this security warning:
    64-bit block cipher 3DES vulnerable to SWEET32 attack
    . By setting the list of ciphers in HelmChartConfig, checking my ciphers with
    nmap
    comes back with nothing, instead of an expected list of ciphers. No errors in traefik logs. This is my HelmChartConfig:
    apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
    kind: HelmChartConfig
    metadata:
      name: traefik
      namespace: kube-system
    spec:
      valuesContent: |-
        ssl:
          enabled: true
          tlsMinVersion: VersionTLS12
          cipherSuites:
            - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
            - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
            - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
            - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
            - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
            - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
    k3s version v1.20.13+k3s1 (b8a1f455)
    c
    • 2
    • 11
  • q

    quiet-memory-19288

    06/16/2022, 3:34 PM
    Good morning. Hey, I need to set
    disable_apparmor
    for containerd on an embedded project I am working on. Can anyone tell me how to do it, so k3s keeps my change?
    [plugins.cri]
    ...
      disable_apparmor = true
    /var/lib/rancher/k3s/agent/etc/containerd# ls config.toml config.toml.tmpl I know I need to make a tmpl file in that folder, but if I do, it seems to break the resulting config.toml. With like the GUID k3s install path and such…. I see the GO template https://github.com/k3s-io/k3s/blob/master/pkg/agent/templates/templates_linux.go
    c
    • 2
    • 15
  • h

    handsome-toddler-59547

    06/16/2022, 9:18 PM
    Hi Folks. I'd like to control my k3s cluster from outside the cluster. The documentation provided here, provides part of the answer. However it doesnt describe how to install kubectl. The machine that I'd like to connect to the cluster from is a Fedora 36 machine. I am using k3s version
    [root@M ~]# kubectl version
    Client Version: <http://version.Info|version.Info>{Major:"1", Minor:"23", GitVersion:"v1.23.6+k3s1", GitCommit:"418c3fa858b69b12b9cefbcff0526f666a6236b9", GitTreeState:"clean", BuildDate:"2022-04-28T22:16:18Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: <http://version.Info|version.Info>{Major:"1", Minor:"23", GitVersion:"v1.23.6+k3s1", GitCommit:"418c3fa858b69b12b9cefbcff0526f666a6236b9", GitTreeState:"clean", BuildDate:"2022-04-28T22:16:18Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}
    How do I install just kubectl on my fedora 36 machine?
    c
    s
    • 3
    • 7
  • h

    handsome-toddler-59547

    06/16/2022, 9:48 PM
    Simple question for the k3s experts. I've been using k3s for about a half year now. Prior to that I had setup my prior kubernetes clusters using "vanilla kubernetes".. all my efforts so far have been non-production. I know k3s is designed to be lightweight. Does this mean that it is potentially not a good platform for "load heavy" production platforms? How would you characterize when to choose an alternative k8s environment? I'll be driving towards making production decisions in the future. I like k3s very much. But I need to keep my eyes open to all system architectural and performance concerns. Any thoughts would be appreciated.
    c
    • 2
    • 16
  • h

    handsome-toddler-59547

    06/16/2022, 10:58 PM
    Hi. Quick Technical Question I've deployed a fresh k3s server.. using klipper. I've got an nginx service up and running and its exposed on an external ip.
    (base) [dsargrad@localhost nginx]$ k get services
    
    NAME         TYPE           CLUSTER-IP    EXTERNAL-IP                     PORT(S)          AGE
    
    kubernetes   ClusterIP      10.43.0.1     <none>                          443/TCP          6h31m
    
    nginx        LoadBalancer   10.43.228.3   192.168.56.133,192.168.56.134   9080:32741/TCP   31m
    For some odd reason I can only access it on 192.168.56.134 (the worker). I cant access it on the master: 192.168.56.133.
    (base) [dsargrad@localhost nginx]$ curl 192.168.56.133:9080
    
    curl: (7) Failed to connect to 192.168.56.133 port 9080 after 0 ms: No route to host
    
    (base) [dsargrad@localhost nginx]$ curl 192.168.56.134:9080
    
    <!DOCTYPE html>
    
    <html>
    <head>
    <title>Welcome to nginx!</title>
    <style>
    html { color-scheme: light dark; }
    body { width: 35em; margin: 0 auto;
    font-family: Tahoma, Verdana, Arial, sans-serif; }
    </style>
    
    </head>
    <body>
    <h1>Welcome to nginx!</h1>
    <p>If you see this page, the nginx web server is successfully installed and
    working. Further configuration is required.</p>
    <p>For online documentation and support please refer to
    <a href="<http://nginx.org/>"><http://nginx.org|nginx.org></a>.<br/>
    Commercial support is available at
    <a href="<http://nginx.com/>"><http://nginx.com|nginx.com></a>.</p>
    <p><em>Thank you for using nginx.</em></p>
    </body>
    </html>
    Any suggestions on why this is?
    f
    • 2
    • 12
  • c

    cool-ocean-71403

    06/17/2022, 4:38 AM
    @creamy-pencil-82913 I have a mysql8.0.29 server setup on my aws ec2 which has been configured with require_secure_transport = ON and ssl related files. I have an user configured for k3s with REQUIRE SSL option. Now what steps I need to take to make a secure TLS connection from my k3s master node to this database server? I am a bit confused and clueless here.
    c
    • 2
    • 14
  • t

    tall-jewelry-68687

    06/17/2022, 6:31 PM
    Hello. I am looking into doing an air-gapped install of k3s containers (coredns, localpath provisioner, etc), but want to generate the containers tarball using custom containers. Is it possible to generate our own tarball that ctr with import the containers of on boot up rather than one of the releases as explained in the docs? Is there documentation on the expected format of the tarball? It looks like there is a manifest and registries file a part of the released airgap images. Do I need to create both a registry.yaml file along with the tarball?
    c
    • 2
    • 15
  • b

    brave-afternoon-4801

    06/18/2022, 9:23 PM
    Is there any way to get klipper to make use of letsencrypt?
    f
    c
    • 3
    • 4
  • c

    cool-ocean-71403

    06/19/2022, 11:54 AM
    Getting these in my k3s installation log file. Anyone can help?
    f
    • 2
    • 29
  • b

    brainy-action-93740

    06/19/2022, 2:30 PM
    Hello! I upgraded to 1.23.7-k3s1 from 1.23.6, now all my pods are constantly restarting with the message "Pod sandbox changed, it will be killed and re-created."
    • 1
    • 3
  • l

    loud-daybreak-83328

    06/20/2022, 7:30 PM
    Any hints as to how to get that secret assigned? I'm using an internally generated cert from a local CA (and have had this working on an older version of rancher). I have my tls-ca secret and ingress secret set, but I don't know where this cattle-system/rancher secret is supposed to be assigned (certainly isn't listed in the docs)
    • 1
    • 1
  • b

    blue-arm-71737

    06/21/2022, 6:49 AM
    looks like get.k3s.io and update.k3s.io are down
    c
    s
    • 3
    • 13
  • m

    miniature-journalist-28760

    06/21/2022, 8:13 AM
    Hi I have a question which I need help with. I need to understand what is the support policy for older releases of k3s. Does k3s drop support for older releases once a new version is released or are previous versions supported but only till a given major release ? Thanks
    c
    • 2
    • 18
  • c

    cool-ocean-71403

    06/21/2022, 6:09 PM
    export INSTALL_K3S_EXEC=--"https-listen-port xxxx --tls-san xxxxx --node-external-ip x.x.x.x --secrets-encryption true --advertise-address x.x.x.x --cluster-cidr x.x.x.x/16 --service-cidr x.x.x.x/16 --cluster-dns x.x.x.x --flannel-backend wireguard-native --disable traefik --protect-kernel-defaults=true --kube-apiserver-arg='audit-log-path=/var/lib/rancher/k3s/server/logs/audit.log' --kube-apiserver-arg='audit-policy-file=/var/lib/rancher/k3s/server/audit.yaml' --kube-apiserver-arg='audit-log-maxage=30' --kube-apiserver-arg='audit-log-maxbackup=10' --kube-apiserver-arg='audit-log-maxsize=100' --kube-apiserver-arg='request-timeout=300s' --kube-apiserver-arg='service-account-lookup=true' --kube-apiserver-arg='enable-admission-plugins=NodeRestriction,PodSecurityPolicy,NamespaceLifecycle,ServiceAccount' --kube-controller-manager-arg='terminated-pod-gc-threshold=10' --kube-controller-manager-arg='use-service-account-credentials=true' --kubelet-arg='streaming-connection-idle-timeout=5m' --kubelet-arg='make-iptables-util-chains=true'"
    K3S install script is ignoring the whole environment variable for some reason. Anyone can help?
    w
    • 2
    • 2
  • c

    cool-ocean-71403

    06/22/2022, 8:45 AM
    INSTALL_K3S_EXEC="--secrets-encryption"
    or
    INSTALL_K3S_EXEC="--secrets-encryption=true"
    or
    INSTALL_K3S_EXEC="--secrets-encryption true"
    which one is the correct syntax to enable secrets encryption? The k3s docs have a mixed combination of the first two. A bit confused here to which one is actually working.
    h
    • 2
    • 31
  • a

    aloof-dress-26414

    06/23/2022, 12:55 PM
    Hi, I installed rancher on my k3s cluster and it created an ingress rule on its own but something seems wrong. When I try to reach the dashboard, I get the Nginx 404 page. This is the output of the ingress:
    NAME      CLASS    HOSTS                     ADDRESS   PORTS     AGE
    rancher   <none>   <http://rancher.mydomain.eu|rancher.mydomain.eu>                 80, 443   24m
    I'm not sure if it should have a class and why the address is blank. Any ideas?
    g
    • 2
    • 2
  • l

    late-needle-80860

    06/24/2022, 9:28 AM
    I want to try out gRPC probes on v1.23.6 of k3s. But, I'm struggling with how to enable this alpha feature. Using the
    kubelet-api-server-arg
    parameter is not doing the job. Have anyone tried and successfully enabled the gRPC probe alpha feature on a k3s distribution? Thanks!!! 🙏
    q
    c
    • 3
    • 23
  • c

    cool-ocean-71403

    06/26/2022, 11:54 PM
    @high-waitress-66594 any idea how to check all the arguements that my k3s server is starting with in openrc system?
    h
    • 2
    • 2
  • m

    melodic-market-42092

    06/27/2022, 8:05 AM
    I'm not sure this question makes sense, but I'll try: Is there a way to list the current traefik ingress controller configuration? After it has configured itself from the various ingress'es in my cluster? I ask because I'm trying to debug why my ingress configuration isn't working as I expect.
    • 1
    • 1
  • m

    most-plumber-12446

    06/27/2022, 10:33 AM
    Hello, I have setup k3s and facing the challenge when providing K3s_URL as the .local hostname. I have understood the @creamy-pencil-82913 comment. But by any chance is it possible to resolve it.. Or in upcoming updates team is planning to resolve it? https://github.com/k3s-io/k3s/issues/1395#issuecomment-702871386
    n
    • 2
    • 6
  • o

    orange-airplane-98016

    06/27/2022, 5:53 PM
    Is SUSE/Rancher still involved with k3s development and is there any roadmap for RISCV support?
    c
    b
    +2
    • 5
    • 8
  • e

    early-lizard-52471

    06/28/2022, 12:55 PM
    k3s worker node not joining master node Can someone help me with this issue ?????? Please I am stuck on this for past 2 days
    c
    • 2
    • 1
  • c

    cool-ocean-71403

    06/28/2022, 2:11 PM
    Does the etcd snapshot feature to s3 object storage works only with k3s embedded etcd? Or, will it also work with external etcd datastore?
    n
    • 2
    • 2
Powered by Linen
Title
c

cool-ocean-71403

06/28/2022, 2:11 PM
Does the etcd snapshot feature to s3 object storage works only with k3s embedded etcd? Or, will it also work with external etcd datastore?
n

nutritious-tomato-14686

06/28/2022, 5:30 PM
It only works with the embedded etcd.
c

cool-ocean-71403

06/28/2022, 7:26 PM
Got it. Thanks for the info.
View count: 7