Merge branch 'main' of work:paasup/dip-catalog
This commit is contained in:
@@ -216,3 +216,36 @@ postgresql:
|
||||
# storageClass: "" # 생성할 볼륨의 storageClass를 설정한다.
|
||||
```
|
||||
|
||||
|
||||
## 6. Infisical 서비스 연동
|
||||
|
||||
``` yaml
|
||||
---
|
||||
apiVersion: secrets.infisical.com/v1alpha1
|
||||
kind: InfisicalSecret
|
||||
metadata:
|
||||
name: infisicalsecret-git # 고유한 이름으로 사용자 정의
|
||||
namespace: infisical
|
||||
labels:
|
||||
label-to-be-passed-to-managed-secret: test-git-secret # 고유한 이름으로 사용자 정의 (아래 annotations값과 동일)
|
||||
annotations:
|
||||
example.com/annotation-to-be-passed-to-managed-secret: "test-git-secret" # 고유한 이름으로 사용자 정의 (위의 label값과 동일)
|
||||
spec:
|
||||
hostAPI: http://infisical-infisical-standalone-infisical.infisical.svc.cluster.local:8080/api # Infisical API
|
||||
resyncInterval: 10
|
||||
authentication:
|
||||
kubernetesAuth:
|
||||
identityId: 5ffaf885-7df2-4c75-a3a5-292a996aa3d7 # Infisical에서 생성한 값
|
||||
serviceAccountRef:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
secretsScope:
|
||||
projectSlug: project1-9j-pp # 프로젝트 GET
|
||||
envSlug: dev # 프로젝트 GET
|
||||
secretsPath: "/system/gitea" # 시크릿의 경로정의
|
||||
recursive: true
|
||||
managedSecretReference:
|
||||
secretName: gitea-user-secret # 생성할 시크릿 이름(values.yaml와 특정 이름으로 맞추면 변경하지 않아도됨)
|
||||
secretNamespace: test-git # Gitea가 배포될 네임스페이스 (네임스페이스가 사전에 생성되어 있어야함)
|
||||
creationPolicy: "Orphan" ## Owner | Orphan
|
||||
```
|
||||
|
||||
@@ -80,7 +80,6 @@ extraContainerVolumeMounts:
|
||||
# fi
|
||||
# EOF
|
||||
|
||||
|
||||
## pod 설정
|
||||
replicaCount: 1
|
||||
|
||||
@@ -104,9 +103,8 @@ persistence:
|
||||
## 같은 네임스페이스에 postgresql 배포 가정
|
||||
gitea:
|
||||
admin:
|
||||
username: sudouser
|
||||
password: password
|
||||
email: "sudouser@cro.com"
|
||||
existingSecret: gitea-user-secret
|
||||
email: "tech@paasup.io"
|
||||
config:
|
||||
APP_NAME: paasup git
|
||||
RUN_MODE: prod
|
||||
@@ -131,4 +129,3 @@ gitea:
|
||||
DEFAULT_ALLOW_CREATE_ORGANIZATION: true
|
||||
repository:
|
||||
DEFAULT_BRANCH: master
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
apiVersion: secrets.infisical.com/v1alpha1
|
||||
kind: InfisicalSecret
|
||||
metadata:
|
||||
name: infisicalsecret-git
|
||||
namespace: infisical
|
||||
labels:
|
||||
label-to-be-passed-to-managed-secret: test-git-secret
|
||||
annotations:
|
||||
example.com/annotation-to-be-passed-to-managed-secret: "test-git-secret"
|
||||
spec:
|
||||
hostAPI: http://infisical-infisical-standalone-infisical.infisical.svc.cluster.local:8080/api
|
||||
resyncInterval: 10
|
||||
authentication:
|
||||
kubernetesAuth:
|
||||
identityId: 5ffaf885-7df2-4c75-a3a5-292a996aa3d7
|
||||
serviceAccountRef:
|
||||
name: infisical-auth
|
||||
namespace: infisical
|
||||
secretsScope:
|
||||
projectSlug: project1-9j-pp
|
||||
envSlug: dev
|
||||
secretsPath: "/system/gitea"
|
||||
recursive: true
|
||||
managedSecretReference:
|
||||
secretName: test-git-secret
|
||||
secretNamespace: test-git
|
||||
creationPolicy: "Orphan" ## Owner | Orphan
|
||||
Reference in New Issue
Block a user