mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
deploy: helm charts templates for single-node (#587)
This commit is contained in:
1 parent
e88220c424
commit
98a15069eb
14 files changed
+343
-1
No files matched your search
@@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: mongo
|
||||
name: mongo-deployment
|
||||
namespace: hydro-namespace
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mongo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mongo
|
||||
spec:
|
||||
containers:
|
||||
- name: oj-mongo
|
||||
image: mongo:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- mountPath: /data/db
|
||||
name: localvolume
|
||||
env:
|
||||
- name: MONGO_INITDB_ROOT_USERNAME
|
||||
value: {{.Values.Mongo.Username}}
|
||||
- name: MONGO_INITDB_ROOT_PASSWORD
|
||||
value: {{.Values.Mongo.Password}}
|
||||
ports:
|
||||
- name: db-port
|
||||
containerPort: 27017
|
||||
volumes:
|
||||
- name: localvolume
|
||||
hostPath:
|
||||
path: {{.Values.Mongo.Volume}}
|
||||
type: DirectoryOrCreate
|
||||
Reference in new issue
Block a user