summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2024-05-22 19:57:20 +0800
committerfumingwei <[email protected]>2024-05-22 20:11:31 +0800
commit09014c973cd38ee9b94ebc2c70645f4942382a4f (patch)
treec0ef8f7bb0ba1f57f72af7a793cd05609bdc88b2
parent1c57ecf46d45506a734dc3fa4209dd560d3f2779 (diff)
feature:Mount host share path to support read service_function config.
-rw-r--r--compose/docker-compose.yml1
-rw-r--r--k8s-resource/tsg-diagnose-client.yaml7
2 files changed, 6 insertions, 2 deletions
diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml
index 94f42d2..3b81c83 100644
--- a/compose/docker-compose.yml
+++ b/compose/docker-compose.yml
@@ -66,6 +66,7 @@ services:
volumes:
- /opt/tsg/tsg-diagnose/etc/.certs_import:/opt/dign_client/etc/certs_import
- /opt/tsg/tsg-diagnose/log:/opt/dign_client/log
+ - /opt/tsg/tsg-diagnose/share:/opt/dign_client/share
- /opt/tsg/tsg-diagnose/etc/client.conf:/opt/dign_client/etc/client.conf
- /etc/localtime:/etc/localtime:ro
command:
diff --git a/k8s-resource/tsg-diagnose-client.yaml b/k8s-resource/tsg-diagnose-client.yaml
index dae8b62..f457c78 100644
--- a/k8s-resource/tsg-diagnose-client.yaml
+++ b/k8s-resource/tsg-diagnose-client.yaml
@@ -60,6 +60,9 @@ spec:
- name: config-path
mountPath: /opt/dign_client/etc/client.conf
subPath: "client.conf"
+ - name: share-path
+ mountPath: /opt/dign_client/share
+
volumes:
- name: localtime-node
@@ -74,8 +77,8 @@ spec:
- name: config-path
hostPath:
path: /opt/tsg/tsg-diagnose/etc
- - name: service-function-config-path
+ - name: share-path
hostPath:
- path: /opt/tsg/tsg-diagnose/etc
+ path: /opt/tsg/tsg-diagnose/share
---