For the coder install into EKS, how do I set the initial admin credentials? I cannot log in.
I have installed Coder into my EKS cluster and have the page up and ready but I have no idea what the login is (i dont see any secrets in K8S holding it) and I dont know what the initial values would be if there was a default.
21 Replies
<#1344128583488114819>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
I tried setting the following:
I verified that the secret has a password field and I know what it decodes to. I still cannot login with the password.
Admin is the username I am using.. I hope thats correct.
No errors in the pod except my auth failures.
Any help would be greatly appreciated.
hey, this is pretty weird, are you not met with a "new instance" page that asks you to set the credentials?
there are no default credentials
Nope, just a login page.
This is my first experience with coder. I could easily be missing something that should be obvious...
you are installing via helm right?
Yes
Only thing I modified was to use my own postgres database and ingress.
Also provided the secret for admin I mentioned above.
superAdmin
is not handled in the chart's code, so i don't think it had any effect whatsoeveryou should be seeing something like this

could you send a screenshot of your login page?
Hmmm.. I will get that in here tonight. Out right now and I deleted the cluster before I left.
another thing, would you be able to wipe any PVCs for your Coder instance (and wipe the database too) and restart it to get the first time logs?
I'll do better because I also rebuild eks from scratch when I redeploy.
nice
could you also get the Coder version you're running?
Yes, I will also share my values
Version: v1.44.6 3051397a1
service:
type: ClusterIP
superAdmin:
passwordSecret:
name: coder-super-admin-password
postgres:
default:
enable: false
host: "postgres-release-postgresql.postgres-db.svc.cluster.local"
port: "5432"
user: "postgres"
database: "postgres"
passwordSecret: "coder-db-url"
connector: "postgres"
sslMode: "disable"
ingress:
enable: true
className: alb
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/healthcheck-path: /login
alb.ingress.kubernetes.io/healthcheck-port: traffic-port
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-west-2:000000000000:certificate/00000000-7131-40bb-8def-00000039d491
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
alb.ingress.kubernetes.io/backend-protocol: HTTP
host: coder.xxx-xxxxxxxxx.com
Image of what I get after installation:

Anyone else out there got any ideas? Not sure why I am not getting the setup page...
Finally got in... found some commands to reset the admin password and that let me in! New problem now is that hte damn license its asking for is supposed to be json but the license I got when signing up is definitely not json... its encoded or something.
i decoded it, at least it looks valid... this is fun right?
@meatbaker33w - You are on a very old coder version. Coder is at v2.19.0.
What steps did you take to get Coder running in your k8s setup? Was it this?
This is important:
oh yeah that makes sense, you are installing the chart for the v1 version, which has been sunsetted
could you send me the steps you've followed to get to this point? this way we can edit the docs to make it clearer you should use v2
I finally got it all working, thank you everyone for all of your help!
nice!
closing the issue, feel free to create another one if you need help!
@Phorcys closed the thread.