change folder
This commit is contained in:
15
bases/groups-management/config.yaml
Normal file
15
bases/groups-management/config.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
dev_env: true
|
||||
|
||||
storage:
|
||||
db:
|
||||
type: mongodb
|
||||
mongodb:
|
||||
uri:
|
||||
db_name:
|
||||
collections:
|
||||
groups: groups
|
||||
groups_member: groups_member
|
||||
services:
|
||||
grpc:
|
||||
enable: true
|
||||
port: 8080
|
||||
41
bases/groups-management/deployment.yaml
Normal file
41
bases/groups-management/deployment.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-coopgo-groups-management
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: groups-management
|
||||
image: docker.io/library/groups-management-v3:local
|
||||
env:
|
||||
- name: STORAGE_DB_MONGODB_URI
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: db-secret
|
||||
key: storage_db_mongodb_uri
|
||||
- name: STORAGE_DB_MONGODB_DB_NAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: db-secret
|
||||
key: storage_db_mongodb_db_name
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: groups-management-config-volume
|
||||
mountPath: /config.yaml
|
||||
subPath: config.yaml
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
volumes:
|
||||
- name: groups-management-config-volume
|
||||
configMap:
|
||||
name: test-groups-management-config
|
||||
items:
|
||||
- key: config.yaml
|
||||
path: config.yaml
|
||||
|
||||
|
||||
15
bases/groups-management/kustomization.yaml
Normal file
15
bases/groups-management/kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
commonLabels:
|
||||
app.kubernetes.io/name: test-coopgo-groups-management
|
||||
app.kubernetes.io/instance: test-coopgo-groups-management
|
||||
|
||||
configMapGenerator:
|
||||
- name: test-groups-management-config
|
||||
files:
|
||||
- config.yaml
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
8
bases/groups-management/service.yaml
Normal file
8
bases/groups-management/service.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: test-coopgo-groups-management-svc
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user