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

change port #6

Open
behradeslamifar opened this issue Dec 4, 2021 · 2 comments
Open

change port #6

behradeslamifar opened this issue Dec 4, 2021 · 2 comments

Comments

@behradeslamifar
Copy link

behradeslamifar commented Dec 4, 2021

Hi
I want to run adb on kubernetes and i have to change localhost/8081 port to global addtess that works with nodeport or ingress.
How can i change default port 8081 and localhost in query?

@reugn
Copy link
Member

reugn commented Dec 4, 2021

Please try to specify the backend public URL using the environment variable
-e "BACKEND_PUBLIC_URL=http://public_host:port"
when running the container.

@behradeslamifar
Copy link
Author

behradeslamifar commented Dec 4, 2021

Please try to specify the backend public URL using the environment variable -e "BACKEND_PUBLIC_URL=http://public_host:port" when running the container.

Thanks. It works.
apiVersion: apps/v1 kind: Deployment metadata: annotations: description: aerospike-data-browser Deployment labels: app: aerospike-data-browser name: aerospike-data-browser namespace: general-tools spec: replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: aerospike-data-browser strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 0 type: RollingUpdate template: metadata: labels: app: aerospike-data-browser spec: containers: - env: - name: AS_HOSTLIST value: 172.16.0.11,172.16.0.10 - name: BACKEND_PUBLIC_URL value: http://172.16.0.12:30635 image: reugn/aerospike-data-browser:0.2.0 imagePullPolicy: IfNotPresent livenessProbe: failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: http-port timeoutSeconds: 1 name: aerospike-data-browser ports: - containerPort: 3000 name: http-port protocol: TCP - containerPort: 8081 name: https-port protocol: TCP readinessProbe: failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: http-port timeoutSeconds: 1 resources: limits: cpu: "2" memory: 2Gi requests: cpu: 800m memory: 800Mi startupProbe: failureThreshold: 30 periodSeconds: 10 successThreshold: 1 tcpSocket: port: http-port timeoutSeconds: 1 restartPolicy: Always

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