Refactor(archrepo): migrate to nestjs
This commit is contained in:
4
archrepo/configmap.env
Normal file
4
archrepo/configmap.env
Normal file
@@ -0,0 +1,4 @@
|
||||
REPO_NAME=custom
|
||||
ARCH_NAME=x86_64
|
||||
MINIO_ENDPOINT=http://minio.konchin.com
|
||||
MINIO_BUCKET=archrepo
|
||||
@@ -22,15 +22,35 @@ spec:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
env:
|
||||
- name: REPO_NAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: archrepo-config
|
||||
key: REPO_NAME
|
||||
- name: ARCH_NAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: archrepo-config
|
||||
key: ARCH_NAME
|
||||
- name: MINIO_ENDPOINT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: archrepo-config
|
||||
key: MINIO_ENDPOINT
|
||||
- name: MINIO_BUCKET
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: archrepo-config
|
||||
key: MINIO_BUCKET
|
||||
- name: MINIO_ACCESSKEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: archrepo
|
||||
name: archrepo-secret
|
||||
key: MINIO_ACCESSKEY
|
||||
- name: MINIO_SECRETKEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: archrepo
|
||||
name: archrepo-secret
|
||||
key: MINIO_SECRETKEY
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
|
||||
@@ -11,3 +11,8 @@ resources:
|
||||
- deploy.archrepo.yaml
|
||||
- svc.archrepo.yaml
|
||||
- ing.archrepo.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: archrepo-config
|
||||
envs:
|
||||
- configmap.env
|
||||
|
||||
Reference in New Issue
Block a user