Skip to content

Adding CA certificate into Coder template failing build (k8s) #464

Open
@SamStenton

Description

@SamStenton

Using the devcontainer Coder template I'm seeing the following issue when mounting my CA certificates:

error: temp remount: temp remount: bind mount /ca-certs/ca-file => /.envbuilder/mnt/ca-certs/ca-file: permission denied

Adding certificate directory to ENV:

locals {
    ...
    "SSL_CERT_DIR" : "/ca-certs"
     //or
    "SSL_CERT_FILE": "/ca-certs/ca-file"
}
resource "kubernetes_deployment" "main" {
  ...

  spec {
    template {
      spec {
          ...
          volume_mount {
            name       = "ca-file"
            mount_path = "/ca-certs/ca-file"
          }
        }

        volume {
          name = "ca-file"
          secret {
            secret_name = "coder-tls"
          }
       ...
    }
}

Just trying to have the container built trust my private PKI services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions