fix: update configuration files to use YAML format and adjust references in deployment

This commit is contained in:
2026-01-10 20:27:15 +08:00
parent 9865f7fa7a
commit 18fa32a915
6 changed files with 14 additions and 22 deletions

View File

@@ -43,9 +43,9 @@ spec:
- name: config-volume
mountPath: /config
- name: helloapp-test-key
mountPath: /certs
mountPath: /certs/test.key
command: ["/helloapp"]
args: ["-f", "/config/.linux-config.json"]
args: ["-f", "/config/.linux-config.yaml"]
volumes:
- name: config-volume
configMap:
@@ -60,12 +60,8 @@ metadata:
name: k8s-example-config
namespace: helloapp
data:
.linux-config.json: |
{
"server": {
"port": 8800
},
"certs": {
"testKeyPath": "./certs/test.key"
}
}
.linux-config.yaml: |
server:
port: 8800
certs:
testKeyPath: /certs/test.key