Skip to content

[BUG] trying to consume secret for private key fails #13

@michaelarmstrong

Description

@michaelarmstrong

Using a tor v3 private key, created via:

kubectl create secret generic test-onion-key --from-file=hs_ed25519_secret_key

and then referenced in the YAML:

privateKeySecret:
    name: test-onion-key
    key: private_key

as per documentation. the pod fails to create with:

Warning FailedMount 6s (x5 over 14s) kubelet MountVolume.SetUp failed for volume "private-key" : references non-existent secret key: privateKeyFile

I predict its just a configuration error, but I can't seem to debug it and am sure its just missing documentation. Please advise.

FULL YAML:

apiVersion: tor.k8s.torproject.org/v1alpha2
kind: OnionService
metadata:
  name: test-site-deployment-tor
spec:
  version: 3
  rules:
    - port:
        number: 80
      backend:
        service:
          name: test-site-deployment
          port:
            number: 80
  privateKeySecret:
    name: test-onion-key
    key: private_key

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsecrets

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions