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
|
- name: http
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
env:
|
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
|
- name: MINIO_ACCESSKEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: archrepo
|
name: archrepo-secret
|
||||||
key: MINIO_ACCESSKEY
|
key: MINIO_ACCESSKEY
|
||||||
- name: MINIO_SECRETKEY
|
- name: MINIO_SECRETKEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: archrepo
|
name: archrepo-secret
|
||||||
key: MINIO_SECRETKEY
|
key: MINIO_SECRETKEY
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
|
|||||||
@@ -11,3 +11,8 @@ resources:
|
|||||||
- deploy.archrepo.yaml
|
- deploy.archrepo.yaml
|
||||||
- svc.archrepo.yaml
|
- svc.archrepo.yaml
|
||||||
- ing.archrepo.yaml
|
- ing.archrepo.yaml
|
||||||
|
|
||||||
|
configMapGenerator:
|
||||||
|
- name: archrepo-config
|
||||||
|
envs:
|
||||||
|
- configmap.env
|
||||||
|
|||||||
Reference in New Issue
Block a user