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

How to specify SQLITE_WEB_PASSWORD in k8s deploy? #136

Closed
victory460 opened this issue Oct 31, 2023 · 1 comment
Closed

How to specify SQLITE_WEB_PASSWORD in k8s deploy? #136

victory460 opened this issue Oct 31, 2023 · 1 comment

Comments

@victory460
Copy link

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: rj-cni-sqlite
  namespace: kube-system
spec:
  updateStrategy:
    type: RollingUpdate
  selector:
    matchLabels:
      app: rj-cni-sqlite
  template:
    metadata:
      labels:
        app: rj-cni-sqlite
    spec:
            #nodeSelector:
            #topology.kubernetes.io/zone: suzhou
      containers:
      - name: rj-cni-sqlite
        image: sdn.harbor.io:28181/bcgtm/cni/rj-cni-sqlite:v1.0
        imagePullPolicy: Always
        # command: ["sh","-c","sqlite_web -H 0.0.0.0 -p 18011 -x /data/log/rj-cni/cni.db"]
        command:
          - /bin/sh
          - -ce
          - export SQLITE_WEB_PASSWORD="web2lite";sqlite_web -H 0.0.0.0 -p 18012 -x /data/log/rj-cni/cni.db
        ports:
        - containerPort: 18012
          hostPort: 18012
          name: http
          protocol: TCP
        volumeMounts:
        - mountPath: /data/log/rj-cni
          name: logdir
        env:
          - name: SQLITE_WEB_PASSWORD
            value: "web2lite"
      hostNetwork: true
      volumes:
      - hostPath:
          path: /data/log/rj-cni
          type: DirectoryOrCreate
        name: logdir
@coleifer
Copy link
Owner

You specify the -P argument:

sqlite_web -P -H 0.0.0.0 -p 18012 -x /data/log/rj-cni/cni.db

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

2 participants