diff --git a/bt-test/templates/mongodb-service.yaml b/bt-test/templates/mongodb-service.yaml index fc892be6c..f0d642e91 100644 --- a/bt-test/templates/mongodb-service.yaml +++ b/bt-test/templates/mongodb-service.yaml @@ -16,7 +16,7 @@ kind: Deployment metadata: name: mongodb spec: - replicas: 1 + replicas: {{ .Values.mongo.replicas }} selector: matchLabels: app: mongodb @@ -27,7 +27,7 @@ spec: spec: containers: - name: mongodb - image: mongo:{ { .Values.mongodb.image.tag } } + image: mongo:{{ .Values.mongo.image.tag }} ports: - containerPort: 27017 volumeMounts: @@ -37,4 +37,4 @@ spec: volumes: - name: mongodb-data hostPath: - path: ./db + path: {{ .Values.mongo.path }} diff --git a/bt-test/templates/nginx-service.yaml b/bt-test/templates/nginx-service.yaml index 5e1da37eb..6104c295f 100644 --- a/bt-test/templates/nginx-service.yaml +++ b/bt-test/templates/nginx-service.yaml @@ -16,7 +16,7 @@ kind: Deployment metadata: name: nginx spec: - replicas: 1 + replicas: {{ .Values.nginx.replicas }} selector: matchLabels: app: nginx @@ -27,14 +27,14 @@ spec: spec: containers: - name: nginx - image: nginx:{ { .Values.nginx.image.tag } } + image: nginx:{{ .Values.nginx.image.tag }} volumeMounts: - name: nginx-config-volume - mountPath: /etc/nginx/conf.d/default.conf + mountPath: /etc/nginx/conf.d/ ports: - containerPort: 8080 restartPolicy: Always volumes: - name: nginx-config-volume hostPath: - path: ./nginx.conf + path: {{ .Values.nginx.path }} \ No newline at end of file diff --git a/bt-test/templates/redis-service.yaml b/bt-test/templates/redis-service.yaml index d25cb6bab..ac2d53efd 100644 --- a/bt-test/templates/redis-service.yaml +++ b/bt-test/templates/redis-service.yaml @@ -16,7 +16,7 @@ kind: Deployment metadata: name: redis spec: - replicas: 1 + replicas: {{ .Values.redis.replicas }} selector: matchLabels: app: redis diff --git a/bt-test/values.yaml b/bt-test/values.yaml index 30c02c112..956ea0090 100644 --- a/bt-test/values.yaml +++ b/bt-test/values.yaml @@ -6,15 +6,20 @@ backend: envFile: .env sourceCodePath: ./backend/src redis: + replicas: 1 image: tag: 6 -mongodb: - image: - tag: 5 -nginx: - image: - tag: 5 frontend: image: repository: berkeleytime-frontend tag: latest +mongo: + replicas: 1 + image: + tag: 6 + path: "/home/chengmingli/home/berkeleytime/db" +nginx: + replicas: 1 + image: + tag: 1.21 + path: "/home/chengmingli/home/berkeleytime/nginx.conf" \ No newline at end of file