https://linen.dev logo
Join Discord
Powered by
# general
  • j

    JanL

    02/14/2023, 3:27 PM
    Is there any recommendations for what memory to provide to coder? (just the coder server, not the workspaces, of course)
    k
    • 2
    • 2
  • t

    timoooooo

    02/14/2023, 6:24 PM
    Thanks Ben, this is amazing. Just used it to setup my own VDI workspace šŸ™‚
  • a

    Atif

    02/14/2023, 10:24 PM
    How the coder ssh-key can be used for commit signing?
  • K8S Problem
    d

    Don

    02/14/2023, 10:58 PM
    Having a bit of trouble getting coder running via the helm chart. It installed beautifully, and the pod is running, but the liveness/readiness probes are failing.
    • 1
    • 5
  • p

    Phorcys

    02/15/2023, 6:48 AM
    in GH you can add a SSH key for signing under Settings > Access
  • a

    Atif

    02/15/2023, 12:25 PM
    I added that key. But how to tell git in coder workspae to use that key for signing commits? usually we do,
    Copy code
    console
    git config --global gpg.format ssh
    git config --global user.signingKey ~/.ssh/key.pub
    But there is no
    .ssh
    directory
  • p

    Phorcys

    02/15/2023, 12:50 PM
    coder has gitssh
  • p

    Phorcys

    02/15/2023, 12:50 PM
    @Atif
  • p

    Phorcys

    02/15/2023, 12:52 PM
    in your workspace coder should set GIT_SSH_COMMAND to "coder gitssh"
  • d

    drizzy

    02/15/2023, 2:35 PM
    do anyone know how to code
  • d

    drizzy

    02/15/2023, 2:35 PM
    if so dm me
  • b

    bwm

    02/16/2023, 12:00 AM
    hey folks. I've got coder v2 running locally at a
    https://HASH.pit-1.try.coder.app
    endpoint and everything was working fine until my session expired. Now I have forgotten my password and neither the local login page nor the cli
    coder login MYURL
    interaction seem to have any way to create a new account or reset password.
    k
    • 2
    • 6
  • h

    hippiehacker

    02/16/2023, 4:19 AM
    Folks deploying coder to kubernetes behind an nginx-ingress controller, anyone having issues with websockets when trying to upload templates?
    Copy code
    coder template create emacs-pod -d . -y -v 
    ā§—  Queued 
    unexpected non-JSON response "text/plain; charset=utf-8".                                                                                                                     
    begin streaming logs: unexpected status code 426: unexpected non-JSON response "text/plain; charset=utf-8"                                                                    
        Error: WebSocket protocol violation: Connection header "close" does not contain Upgrade                                                                                       
    {"message":"Failed to accept websocket.","detail":"failed to accept WebSocket connection: WebSocket protocol violation: Connection header \"close\" does not contain Upgrade"}
                                                                                                                                                                                  
    Run 'coder templates create --help' for usage.
  • h

    hippiehacker

    02/16/2023, 4:21 AM
    Seems like nginx ingress supports websockets by default, but I've also tried the following annotations:
    Copy code
    kubectl -n coder get ingress coder -o json | jq .metadata.annotations
    {
      "meta.helm.sh/release-name": "coder",
      "meta.helm.sh/release-namespace": "coder",
      "nginx.ingress.kubernetes.io/proxy-read-timeout": "3600",
      "nginx.ingress.kubernetes.io/proxy-send-timeout": "3600",
      "nginx.ingress.kubernetes.io/server-snippets": "location / {\nproxy_set_header Upgrade $http_upgrade;\nproxy_http_version 1.1;\nproxy_set_header X-Forwarded-Host $http_host;\nproxy_set_header X-Forwarded-Proto $scheme;\nproxy_set_header X-Forwarded-For $remote_addr;\nproxy_set_header Host $host;\nproxy_set_header Connection \"upgrade\";\nproxy_cache_bypass $http_upgrade;\n}\n"
    }
  • d

    Deleted User

    02/16/2023, 9:57 AM
    It depends on what ingress controller you are using in k8s. There is NginX official and Kubernetes NginX ingress controller out there. And one of them allows WebSecket per default iirc.
  • c

    cian

    02/16/2023, 4:17 PM
    For a "regular" nginx server (not a Kubernetes ingress controller), this is the snippet I have:
    Copy code
    server {
            server_name $CODER_DNS_NAME_GOES_HERE;
            [...]
            location / {
                # Use HTTP/1.1 by default.
                proxy_http_version 1.1;
                # These are important to support WebSockets
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                # Set proxy headers
                proxy_set_header Host $host;
    
                proxy_pass http://$HOST:$PORT;
            }
    }
    I'd double-check which version of the nginx ingress controller you have
  • j

    JanL

    02/17/2023, 2:01 PM
    I've now decided that I want to set up the production-coder-deployment with VMs (to lower the complexity and being independend of any k8s stability issues/update cycles). My desired setup looks like this
  • j

    JanL

    02/17/2023, 2:02 PM
    Is there any recommendation how to deploy coder on these machines? I am tempted to use docker containers with host networking. This way I don't buy any latencies from internal NAT and still have the ability to easily switch versions back and forth if necessary.
    k
    • 2
    • 5
  • p

    Phorcys

    02/17/2023, 3:19 PM
    I have no idea but what tool did you use to make that diagram ?
  • j

    JanL

    02/17/2023, 3:29 PM
    excalidraw.
  • j

    JanL

    02/17/2023, 3:30 PM
    to be precise, it was the excalidraw plugin for obsidian but that should not matter much šŸ˜‰
  • p

    Phorcys

    02/17/2023, 4:09 PM
    what is the primary OS used for coder development?
    k
    a
    d
    • 4
    • 10
  • p

    Phorcys

    02/17/2023, 8:27 PM
    bidirectional clipboard is defo a treat ! I haven't seen any improvements to performance though (from noVNC), maybe that's just me though..
  • p

    Phorcys

    02/17/2023, 8:27 PM
    also I don't like how kasm looks, it looks like noVNC had iron deficiency
  • d

    Deleted User

    02/18/2023, 9:20 AM
    Yeah. I love this tool too. And this is almost always installed in every workspace to create fast and nice scribbles. It is also available as a plugin for code-server too. https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor
  • s

    Sven

    02/18/2023, 12:01 PM
    Hi!
  • s

    Sven

    02/18/2023, 12:01 PM
    Im trying to install docker-code-server on Coder
  • s

    Sven

    02/18/2023, 12:02 PM
    but it quit on template import provision for start: recv import provision: plan terraform: terraform plan: exit status 1
  • s

    Sven

    02/18/2023, 12:02 PM
    https://paste.bijsven.nl/hofuzavuya.cpp
  • a

    Atif

    02/18/2023, 12:03 PM
    Hi Sven! Did you add
    coder
    user to the
    docker
    group? You need that.
1...565758...96Latest