Skip Navigation
Courses for SIMPLE, website-orientated, javascript development

Does anyone know any courses for web javascript? like youtube courses and for web javascript, i mean writing js in script tags, using document and window, and intergrating backend with frontend no nodejs or stuff like that. Just javascript, being used in a script tag, being used to dynamically manipulate elements, the DOM, and such. Most tutorials I found was just, explaining how js works, i know how it works, I want to know how to do the communication between front-end and back-end.

[EDIT] I found one person, and while I would like it if you could tell me more courses, i will link his videos, Traversy Media did some videos on Javascript DOM, which basically does what I asked for, i made a playlist: https://www.youtube.com/playlist?list=PLDmZtFPxsV268gyN8XBTgXiVVRXtIRf2o

if for whatever reason the playlist goes down, just search for him. But I would like to hear about alternatives.

8
Cloudflare Tunnels is using the wrong DNS server on my k8s cluster
  • Nevermind, fixed, this is what I tried applying, or maybe i should have waited for a bit and it might of worked, regardless, just incase its useful to anyone:

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: coredns
      namespace: kube-system
    data:
      Corefile: |
        .:53 {
            errors
            health
            ready
            kubernetes cluster.local in-addr.arpa ip6.arpa {
                pods insecure
                fallthrough in-addr.arpa ip6.arpa
            }
            hosts /etc/coredns/NodeHosts {
                ttl 60
                reload 15s
                fallthrough
            }
            prometheus :9153
            forward . 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4
            cache 30
            loop
            reload
            loadbalance
        }
    
    

    The issue is solved now, thanks

  • Cloudflare Tunnels is using the wrong DNS server on my k8s cluster
  • Ok so, I think it was running on the wrong node and using thats resolv.conf which I did not update, but I am getting a new issue:

    2025-05-02T21:42:30Z INF Starting tunnel tunnelID=72c14e86-612a-46a7-a80f-14cfac1f0764
    2025-05-02T21:42:30Z INF Version 2025.4.2 (Checksum b1ac33cda3705e8bac2c627dfd95070cb6811024e7263d4a554060d3d8561b33)
    2025-05-02T21:42:30Z INF GOOS: linux, GOVersion: go1.22.5-devel-cf, GoArch: arm64
    2025-05-02T21:42:30Z INF Settings: map[no-autoupdate:true]
    2025-05-02T21:42:30Z INF Environmental variables map[TUNNEL_TOKEN:*****]
    2025-05-02T21:42:30Z INF Generated Connector ID: 7679bafd-f44f-41de-ab1e-96f90aa9cc34
    2025-05-02T21:42:40Z ERR Failed to fetch features, default to disable error="lookup cfd-features.argotunnel.com on 10.90.0.10:53: dial udp 10.90.0.10:53: i/o timeout"
    2025-05-02T21:43:30Z WRN Unable to lookup protocol percentage.
    2025-05-02T21:43:30Z INF Initial protocol quic
    2025-05-02T21:43:30Z INF ICMP proxy will use 10.60.0.194 as source for IPv4
    2025-05-02T21:43:30Z INF ICMP proxy will use fe80::eca8:3eff:fef1:c964 in zone eth0 as source for IPv6
    
    
    2025-05-02T21:42:40Z ERR Failed to fetch features, default to disable error="lookup cfd-features.argotunnel.com on 10.90.0.10:53: dial udp 10.90.0.10:53: i/o timeout"
    
    

    kube-dns usually isnt supposed to give a i/o timeout when going to external domains, im pretty sure its supposed to forward it to another dns server, or do i have to configure that?

  • Cloudflare Tunnels is using the wrong DNS server on my k8s cluster

    https://pastebin.com/gqPLwSFq

    ^ output of my resolv.conf and cloudflare logs

    kube-system kube-dns ClusterIP 10.90.0.10 <none> 53/UDP,53/TCP,9153/TCP 2d15h

    ^ my service ip for kubedns

    https://pastebin.com/BCBhh8aj

    ^ my cloudflare config

    How come, despite there being no mention of 8.8.8.8 on my system, in any other dns file for kubedns, not in my resolv.conf, tunnels, is now, incorrectly, trying to use that, to resolve internal ips, it does not make any sense

    I think internal DNS resolution is overall working fine, here is a example of me accessing traefik from one of my pods: spiderunderurbed@raspberrypi:~/k8s $ kubectl exec -it wordpress-7767b5d9c4-qh59n -- curl traefik.default.svc.cluster.local 404 page not found spiderunderurbed@raspberrypi:~/k8s $ ^ means traefik was accessed, it is accessed as its my ingress, and there is nothing about 8.8.8.8 in there, might be baked in my CF.

    4
    Is it possible to set what DNS server cloudflare tunnels uses when resolving local ips?

    Title. I am in a k8s cluster, and I constantly get DNS issues in it, for some reason, it is using my resolv.conf, and since I have tailscale it tends to overwrite my resolv.conf, i don't think there is a way to fix it, also, I have multiple clusters and I don't know how to exactly use the proper names, I set up stuff like PowerDNS, but I want it so that, some of cloudflare tunnels queries goes through this nameserver, while some of it goes through other nameservers, the way k8s handles dns internally leads to some weird stuff where, if a DNS server says NXDOMAIN, it wont try the next one, and just general buggy behavior.

    (to better explain, I dont have direct ips in my tunnel configuration, as I would have to change them often, I use DNS names, and intend to continue using DNS)

    3
    How to see what is using flannel or circumvent flannel address usage in kubernetes?

    [EDIT (solved)]: Turns out, cilium did not remove its network links, and somehow kept updating to my current CIDIR leading to a duplicate, removing the links worked.

    I keep on getting issues with CNI and networking.. I just want my cluster to work.. anyways ``` Apr 28 17:14:30 raspberrypi k3s[2373903]: time="2025-04-28T17:14:30+12:00" level=error msg="flannel exited: failed to register flannel network: failed to configure interface flannel.1: failed to set interface flannel.1 to UP state: address already in use"

    How do i see what is using flannel Here is my server arguments: ExecStart=/usr/local/bin/k3s \ server \ --kubelet-arg=allowed-unsafe-sysctls=net.core.rmem_max,net.core.wmem_max,net.ipv4.ip_forward \ --flannel-backend vxlan \ --disable=traefik \ --write-kubeconfig-mode 644 ``` So I am using the default flannel backend, I tried repeatedly uninstalling then re-installing k3s, I deleted the current flannel interface with ip link, there is no other k3s instance is running, so why am I getting this issue?

    2
    How to get kubernetes to add all its internal dns entries to your own dns server
  • Well I switched to cilium, same issue, and the reason I started using a CNI earlier than I intended was because flannel didn't work.

    This issue might seem complex but could you tell me some debugging stuff and logs to try to maybe get to the source of the issue or atleast provide a way to reproduce my issue (so I could maybe file a bug report)

  • Memory issues with cilium despite plenty of memory being available

    spiderunderurbed@raspberrypi:~/k8s $ kubectl logs cilium-envoy-chzf8 -n kube-system external/com_github_google_tcmalloc/tcmalloc/system-alloc.cc:625] MmapAligned() failed - unable to allocate with tag (hint, size, alignment) - is something limiting address placement? 0x177840000000 1073741824 1073741824 @ 0x555b5fccc4 0x555b5f90e0 0x555b5f89a0 0x555b5d81d0 0x555b5f6694 0x555b5f6468 0x555b5cd988 0x555b4e3c84 0x555b4e09a0 0x7fb3918614 external/com_github_google_tcmalloc/tcmalloc/arena.cc:58] FATAL ERROR: Out of memory trying to allocate internal tcmalloc data (bytes, object-size); is something preventing mmap from succeeding (sandbox, VSS limitations)? 131072 632 @ 0x555b5fd034 0x555b5d8260 0x555b5f6694 0x555b5f6468 0x555b5cd988 0x555b4e3c84 0x555b4e09a0 0x7fb3918614 spiderunderurbed@raspberrypi:~/k8s $ Does anyone know how to fix the memory issue with cilium? or could link me to the docs or any issues about this. I just followed the instructions to install cilium, most stuff is up, I think tje daemon set is down? more specifically this pod cilium-envoy-chzf8 is in a crashloop of this memory issue, I have 3gbs+ of RAM avalible, but I dont think cilium would take up the rest of my memory nor does it look like size is a issue, here is a example: spiderunderurbed@raspberrypi:~/k8s $ free -h total used free shared buff/cache available Mem: 7.6Gi 4.0Gi 374Mi 197Mi 3.7Gi 3.7Gi Swap: 511Mi 188Mi 323Mi spiderunderurbed@raspberrypi:~/k8s $ Cilium status: https://pastebin.com/yRRbcT6v

    2
    How to get kubernetes to add all its internal dns entries to your own dns server
  • spiderunderurbed@raspberrypi:~/k8s $ kubectl get networkpolicy -A
    No resources found
    spiderunderurbed@raspberrypi:~/k8s $ 
    

    No networkpolicies.

    spiderunderurbed@raspberrypi:~/k8s $ kubectl get pods -A | grep -i dns
    default                      pdns-admin-mysql-854c4f79d9-wsclq                         1/1     Running            1 (2d22h ago)    4d9h
    default                      pdns-mysql-master-6cddc8cd54-cgbs9                        1/1     Running            0                7h49m
    kube-system                  coredns-ff8999cc5-hchq6                                   1/1     Running            1 (2d22h ago)    4d11h
    kube-system                  svclb-pdns-mysql-master-1993c118-8xqzh                    3/3     Running            0                4d
    kube-system                  svclb-pdns-mysql-master-1993c118-whf5g                    3/3     Running            0                124m
    spiderunderurbed@raspberrypi:~/k8s $ 
    

    Ignore powerdns, its just extra stuff, but yeah coredns is running

    spiderunderurbed@raspberrypi:~/k8s $  kubectl get endpoints  -n kube-system
    NAME             ENDPOINTS                                              AGE
    kube-dns         172.16.246.61:53,172.16.246.61:53,172.16.246.61:9153   4d11h
    metrics-server   172.16.246.45:10250                                    4d11h
    traefik          <none>                                                 130m
    spiderunderurbed@raspberrypi:~/k8s $ 
    

    ^ endpoints and services:

    spiderunderurbed@raspberrypi:~/k8s $ kubectl get svc -n kube-system
    NAME             TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)                      AGE
    kube-dns         ClusterIP      10.43.0.10      <none>        53/UDP,53/TCP,9153/TCP       4d11h
    metrics-server   ClusterIP      10.43.67.112    <none>        443/TCP                      4d11h
    traefik          LoadBalancer   10.43.116.221   <pending>     80:31123/TCP,443:30651/TCP   131m
    spiderunderurbed@raspberrypi:~/k8s $ 
    
  • Traefik is not running properly, kube-apiserver pod might be down
  • It was my backend, turns out, it forwards /nextcloud onto the nextcloud service, which does not know what to do with it unless I set something like site-url to include that path. So I made a middleware to strip the prefix, but now it cannot access any of its files because it will use the wrong path.

  • How to get kubernetes to add all its internal dns entries to your own dns server
  • https://pastebin.com/RhU5xtma I cant access any external address including dns servers, so, there is no firewall running on my pi (the master node), I can set the nameserver to be 1.1.1.1 in the pods config and iirc that works, but inside the pod, it doesn't work, so how do i fix this? You probably need more information so i can share. I am running calico as my CNI

  • Traefik is not running properly, kube-apiserver pod might be down

    [EDIT] Soo.. kinda fixed? It was my backend, turns out, it forwards /nextcloud onto the nextcloud service, which does not know what to do with it unless I set something like site-url to include that path. So I made a middleware to strip the prefix, but now it cannot access any of its files because it will use the wrong path. I will look for siteurl settings but I dont think all of my services have one, so any advice would be appreciated for a general solution

    So currently my raspberrypi is connected to my internet under the ip, 192.168.68.77, (I configured traefik to work with that host and alternative hosts if need be). According to traefik logs I think that it does not work because it is missing access to the api server, although i could be wrong, i installed traefik via helm, and I have a config file for it, and disabled the default traefik given by k3s. here is the traefik config and logs: config: https://pastebin.com/XYH2LKF9 logs: https://pastebin.com/sbjPZCXv pods and svcs (all): https://pastebin.com/4y8h5YUK

    The ingress is exposed properly, I know because of the curl behavior, so traffic going to 192.168.68.77 is going to traefik, and trying any of the services I have exposed like /traefik or /nextcloud does not work (404 error): ``` --- apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: nextcloud-route namespace: default spec: entryPoints: - web routes: - match: (Host(192.168.68.77) && PathPrefix(/nextcloud)) || (Host(192.168.1.22) && PathPrefix(/nextcloud)) kind: Rule middlewares: - name: general-middleware services: - name: nextcloud-service port: 80

    ``` Example of my routes

    > It was my backend, turns out, it forwards /nextcloud onto the nextcloud service, which does not know what to do with it unless I set something like site-url to include that path. So I made a middleware to strip the prefix, but now it cannot access any of its files because it will use the wrong path. >

    2
    How to get kubernetes to add all its internal dns entries to your own dns server
  • Well, its kube-dns, and it simply, does not work, more specifically, it cannot resolve any external domains, I think it can resolve internal domains but I doubt thats working, but mainly it cant resolve external domains. I posted about it, here: https://lemmy.zip/post/36964791

    Recently, it was fixed because I found the correct endpoint, and uhh, now it stopped working, I updated the endpoint to the newer one, but it went back to the original issue detailed in that post.

  • How to get kubernetes to add all its internal dns entries to your own dns server
  • No, i want to replace kube-dns and coredns, and some of my applications will resolve the ip at my dns server, then try those ips within the server, but mainly I want to replace the current dns stack due to several issues.

  • How to get kubernetes to add all its internal dns entries to your own dns server

    By this I mean, I have a powerdns server running in my cluster, I would like Kubernetes to add/update dns entries in my dns server to reflect all services or any domains that would be used within the cluster, this is to fix a current issue I am having, and for general control and centralization purposes.

    22
    Kubernetes DNS broke

    spiderunderurbed@raspberrypi:~/k8s $ kubectl run -it --rm network-tools \ --image=nicolaka/netshoot \ --restart=Never \ -- /bin/bash If you don't see a command prompt, try pressing enter. network-tools:~# cat /etc/resolv.conf search default.svc.cluster.local svc.cluster.local cluster.local nameserver 10.43.0.10 options ndots:5 network-tools:~# DNS does not work in my k8s cluster. I dont know how to debug this, this is all my logs are in Coredns and kubedns: [WARNING] No files matching import glob pattern: /etc/coredns/custom/*.override [WARNING] No files matching import glob pattern: /etc/coredns/custom/*.server This probably isnt enough, but what more can I do to debug this? I dont think its anything to do with my CNI, I am using calico, 1.1.1.1 as a nameserver or any nameserver works, but the issue is that internal to external dns mappings do not work, dns cannot resolve outside. Maybe not inside either according to this: spiderunderurbed@raspberrypi:~/k8s $ kubectl run -it --rm network-tools-2 --image=nicolaka/netshoot --restart=Never -- /bin/bash If you don't see a command prompt, try pressing enter. network-tools-2:~# ping traefik.com ping: traefik.com: Try again network-tools-2:~# the services for kubedns and coredns does not work, but the logs as I sent above, dont show me much.

    0
    Alternative applications for libvirt/kvm/qemu other than virt-manager (gui)?

    I find virt-manager hard to use, and not easily configurable, XML is the easiest but I don't always want to configure my vms in either a command-line or XML directly, is there any graphical alternative to virt-manager that uses the entire or part of the stack?

    3
    Dynamic VFIO does not work

    https://pastebin.com/30Bh23EV and this: DVfio.configuration = { systemd.tmpfiles.rules = [ "f /tmp/enable-vfio-switch 0644 spiderunderurbed users -" ]; environment.variables = { KWIN_DRM_DEVICES = lib.mkForce ""; }; environment.extraInit = '' export KWIN_DRM_DEVICES=$(${vfio}/bin/vfio) ''; };

    So there is a issue with my configuration, so, you dont really need to understand nix, just like, look at my qemu hook script, its in plain sh, and the stuff above might be self explanitory, the issue is, my nvidia drivers are still being used, despite, setting KWIN_DRM_DEVICES to card0 so the logs of libvirtd looks something like this: https://pastebin.com/TaKrsY9S if setting kwin_drm_devices to my gpu card does not work, i dont know what does and can use help

    0
    selinux and tmpfs mount issue

    [spiderunderurbed@daspidercave:~]$ distrobox enter debian Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "tmpfs" to rootfs at "/sys/fs/selinux": create mountpoint for /sys/fs/selinux mount: mkdirat /var/lib/docker/overlay2/21421daf7f99a368b01031a78a899d0a459f341e9e942698981d2499a9aa042c/merged/sys/fs/selinux: operation not permitted: unknown Error: failed to start containers: debian [ble: exit 1] How do i fix? This was created normally, the container, I dont know what more information to add

    0
    NodeNotReady despite no pressure and an available network kubernetes
  • Thats weird, because I clearly have free space:

    spiderunderurbed@raspberrypi:~ $ df -h /
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/mmcblk0p2  235G  184G   39G  83% /
    spiderunderurbed@raspberrypi:~ $ df -h .
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/mmcblk0p2  235G  184G   39G  83% /home
    spiderunderurbed@raspberrypi:~ $ 
    

    any idea of things I can try to fix/debug this?

  • NodeNotReady despite no pressure and an available network kubernetes

    My cluster has been showing my raspberrypi node as "Ready" but according to the description of the node, the last log was "NodeNotReady" all debug guides say look for any pressure, like disk, pid, or so on, but there is no pressure, no absence of network. Here is the logs of my pi and pi status: https://pastebin.com/UULz6Hcy My pods are stuck in unknown (except jellyfin which is awaiting another node to come on): https://pastebin.com/vw2masAC A description of one of my pods if that helps: https://pastebin.com/s5W03s0E

    also i already tried re-installing k3s

    4
    homelab @lemmy.ml SpiderUnderUrBed @lemmy.zip
    Cloudflare Tunnels is not working (DNS is broken)

    So I need help with a split dns approach, or a direct fix, normally when running my tunnel on the simplest configuration I get this error: ```

    Couldn't resolve SRV record &{region1.v2.argotunnel.com. 7844 1 1}: lookup region1.v2.argotunnel.com. on 10.43.0.10:53: read udp 172.16.91.156:54443->10.43.0.10:53: i/o timeout

    When I tried to change the nameserver to cloudflare to make it accessible I get this error: 2025-04-07T10:06:38Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp: lookup traefik on 1.1.1.1:53: no such host" connIndex=3 event=1 ingressRule=3 originService=http://traefik/ 2025-04-07T10:06:38Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp: lookup traefik on 1.1.1.1:53: no such host" connIndex=3 dest=https://nextcloud.spidershomelab.xyz/index.php/204 event=0 ip=198.41.200.233 type=http apiVersion: apps/v1 kind: Deployment metadata: name: tunnel labels: app: tunnel spec: replicas: 1 selector: matchLabels: app: tunnel template: metadata: labels: app: tunnel spec: dnsPolicy: None dnsConfig: nameservers: - 1.1.1.1 - 10.43.0.10

    searches:

    - default.svc.cluster.local

    hostNetwork: true containers: - name: tunnel image: cloudflare/cloudflared:latest args: - tunnel - --no-autoupdate - run env: - name: TUNNEL_TOKEN valueFrom: configMapKeyRef: name: env key: CLOUDFLARE_TUNNEL_TOKEN restartPolicy: Always ```

    Anyone know why cf tunnels is asking the wrong DNS server? I know i specified 1.1.1.1 but it should have also asked kubedns as I specified its ip I do have to specify its nameserver or else it does not work, it wont be able to connect to their argotunnel domain without going through 1.1.1.1 ```

    kube-dns ClusterIP 10.43.0.10 <none> 53/UDP,53/TCP,9153/TCP 12d ``` also its the correct ip I would like it, if you cant give direct advice, to try this deployment, and add a custom dns server that idk, configures it so that correct ip queries goes to 1.1.1.1 and the rest kubedns, i dried coredns, and other dns servers and I couldnt get anything to work I am trying the nameserver 1.1.1.1 because otherwise I get the error mentioned above. and no, I am not running a firewall nor anything that should block it outside of k8s, as it runs perfectly fine on the host.

    4
    homelab @lemmy.ml SpiderUnderUrBed @lemmy.zip
    Traefik: services can no longer access assets when stripping first prefix (how to set base url)

    ``` apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: strip-first-prefix namespace: default spec:

    replacePathRegex:

    regex: "/[/]+(.*)"

    replacement: "$1"

    stripPrefix: prefixes: #- "/dashboard" #- "/api" - "/gitea" - "/wordpress" - "/vaultwarden" - "/pdns" - "/glance" - "/immich" ``` So I have a issue. whenever I accessed all of my services via 192.168.1.22/wordpress for example. it forwarded that /wordpress to the actual wordpress domain, leading to page not found, however when i strip the initial proefix, i can access the base page, however, when lets say wordpress wants any css or assets, it will look at 192.168.1.22/assets which wont work, so basically, I need a way for sort of, emulate the url paths, so it wont take actual queries to places that dont exist and tries to access resources the incorrect way, i know siteURL exists for WP, but i want a catchall solution which helps my other services.

    1
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SP
    SpiderUnderUrBed @lemmy.zip
    Posts 14
    Comments 19