Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant specify "multi tenancy" accounts #318

Open
sloev opened this issue Apr 21, 2021 · 0 comments
Open

cant specify "multi tenancy" accounts #318

sloev opened this issue Apr 21, 2021 · 0 comments

Comments

@sloev
Copy link

sloev commented Apr 21, 2021

i see no way of using multi tenancy (operator https://docs.nats.io/nats-server/configuration/securing_nats/accounts) with this operator.

i have tried:

apiVersion: nats.io/v1alpha2
kind: NatsCluster
metadata:
  name: nats
spec:
  size: 3
  version: "2.1.8"
  
  pod:
    enableConfigReload: true

    volumeMounts:
      - name: authconfig
        mountPath: /etc/nats-config/authconfig

  template:
    spec:
      volumes:
        - name: authconfig
          configMap:
            name: nats-config
---
apiVersion: v1
kind: Service
metadata:
  name: nats-lb
  namespace: default
  labels:
    app: nats
spec:
  type: LoadBalancer
  externalTrafficPolicy: Local
  selector:
    app: nats
  ports:
    - name: nats
      protocol: TCP
      port: 4222
      targetPort: 4222
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: nats-config
data:
  nats.conf: |
    pid_file: "/var/run/nats/nats.pid"
    http: 8222
    debug=true
    trace=true 

    accounts: {
      World1: {
          users: [
              { nkey: UAONLF6PPTG2YRFIQFW3A5IV4D5S3C4DSJ3IQEFXODU7TRXQXUTRRN44 }
          ]
      },
    }    

but it doesnt seem like it picks up the accounts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant