Truenas版本 24.04
1
2
|
# 取得truenas scale的k8s dns 資訊
k3s kubectl get services -n kube-system
|

在Network -> Global Configuration中設定DNS Server
因為有些app的web介面沒有支援設定dns server

1
2
3
4
5
6
7
8
9
10
11
12
|
truenas 內建的app
curl -v http://<app name>.ix-<app name>>.svc.cluster.local:<port>
curl -v http://paperless-ngx.ix-paperless-ngx.svc.cluster.local:30070
curl http://photoprism.ix-photoprism.svc.cluster.local:20800
// custom app
curl http://<app name>-ix-chart.ix-<app name>.svc.cluster.local
curl http://hellotest-ix-chart.ix-hellotest.svc.cluster.local
curl http://nginx2-ix-chart.ix-nginx2.svc.cluster.local
|
可能用不到
把k8s service的 type改成 ClusterIP (如果本來就是ClusterIP就不用改)
1
|
k3s kubectl edit service hellotest-ix-chart -n ix-hellotest
|
2024/09/30 更新
Dockerfile export port 3000

custom app內的 port forwarding 設定

從其它服務連接到custom app,需使用port 3000不是20774
1
|
http://nest-project-ix-chart.ix-nest-project.svc.cluster.local:3000
|