Skip to content

Commit 62b3914

Browse files
committed
refactor: Argocd Apps
1 parent e67f980 commit 62b3914

File tree

19 files changed

+331
-502
lines changed

19 files changed

+331
-502
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
namespace: plane
5+
6+
helmCharts:
7+
- name: plane-ce
8+
repo: https://helm.plane.so/
9+
version: 1.5.0
10+
releaseName: plane
11+
namespace: plane
12+
valuesFile: values.yaml

application/plane/values.yaml

Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
planeVersion: v1.15.0
2+
3+
dockerRegistry:
4+
enabled: false
5+
registry: 'index.docker.io/v1/'
6+
loginid: ''
7+
password: ''
8+
9+
license:
10+
licenseServer: https://prime.plane.so
11+
licenseDomain: 'plane.yadon3141.com' # 実運用ドメインに合わせて
12+
13+
airgapped:
14+
enabled: false
15+
s3SecretName: ""
16+
s3SecretKey: ""
17+
18+
ingress:
19+
enabled: true
20+
minioHost: '' # 既存MinIOのUIを別Ingressで持っているなら空でOK
21+
rabbitmqHost: '' # 必要なら管理UIを公開
22+
ingressClass: 'traefik'
23+
ingress_annotations:
24+
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
25+
# 必要に応じて: traefik.ingress.kubernetes.io/redirect-entry-point: websecure
26+
# traefik.ingress.kubernetes.io/router.tls: "true"
27+
28+
ssl:
29+
tls_secret_name: 'plane-tls' # cert-manager等で作るSecret名。既にあるものを指定
30+
createIssuer: false # Traefik/cert-manager側で証明書を発行する運用を想定
31+
issuer: http
32+
token: ''
33+
server: https://acme-v02.api.letsencrypt.org/directory
34+
email: plane@example.com
35+
generateCerts: false
36+
37+
services:
38+
redis:
39+
local_setup: true
40+
image: valkey/valkey:7.2.11-alpine
41+
servicePort: 6379
42+
volumeSize: 500Mi
43+
pullPolicy: IfNotPresent
44+
45+
postgres:
46+
local_setup: true
47+
image: postgres:15.7-alpine
48+
servicePort: 5432
49+
volumeSize: 10Gi
50+
pullPolicy: IfNotPresent
51+
52+
rabbitmq:
53+
local_setup: true
54+
image: rabbitmq:3.13.6-management-alpine
55+
servicePort: 5672
56+
managementPort: 15672
57+
volumeSize: 1Gi
58+
pullPolicy: IfNotPresent
59+
default_user: plane
60+
default_password: plane
61+
external_rabbitmq_url: ''
62+
63+
# ← ここが重要:既存MinIOを使うため Plane 同梱MinIOは無効化
64+
minio:
65+
local_setup: false
66+
image: minio/minio:latest
67+
image_mc: minio/mc:latest
68+
volumeSize: 0Gi
69+
pullPolicy: IfNotPresent
70+
root_user: ""
71+
root_password: ""
72+
env:
73+
minio_endpoint_ssl: false
74+
75+
iframely:
76+
enabled: false
77+
78+
web:
79+
replicas: 1
80+
image: artifacts.plane.so/makeplane/web-commercial
81+
pullPolicy: Always
82+
83+
monitor:
84+
image: artifacts.plane.so/makeplane/monitor-commercial
85+
pullPolicy: Always
86+
volumeSize: 100Mi
87+
88+
space:
89+
replicas: 1
90+
image: artifacts.plane.so/makeplane/space-commercial
91+
pullPolicy: Always
92+
93+
admin:
94+
replicas: 1
95+
image: artifacts.plane.so/makeplane/admin-commercial
96+
pullPolicy: Always
97+
98+
live:
99+
replicas: 1
100+
image: artifacts.plane.so/makeplane/live-commercial
101+
pullPolicy: Always
102+
103+
api:
104+
replicas: 1
105+
image: artifacts.plane.so/makeplane/backend-commercial
106+
pullPolicy: Always
107+
108+
worker:
109+
replicas: 1
110+
111+
beatworker:
112+
replicas: 1
113+
114+
silo:
115+
enabled: true
116+
replicas: 1
117+
image: artifacts.plane.so/makeplane/silo-commercial
118+
pullPolicy: Always
119+
connectors:
120+
slack:
121+
enabled: false
122+
client_id: ''
123+
client_secret: ''
124+
github:
125+
enabled: false
126+
client_id: ''
127+
client_secret: ''
128+
app_name: ''
129+
app_id: ''
130+
private_key: ''
131+
gitlab:
132+
enabled: false
133+
client_id: ''
134+
client_secret: ''
135+
136+
email_service:
137+
enabled: false
138+
139+
outbox_poller:
140+
enabled: false
141+
142+
automation_consumer:
143+
enabled: false
144+
145+
external_secrets:
146+
rabbitmq_existingSecret: ''
147+
pgdb_existingSecret: ''
148+
# ★ 既存MinIOのアクセスキー/シークレットを格納したSecret名
149+
doc_store_existingSecret: 'plane-docstore-cred'
150+
app_env_existingSecret: ''
151+
live_env_existingSecret: ''
152+
silo_env_existingSecret: ''
153+
154+
env:
155+
# Longhorn を使うなら指定
156+
storageClass: 'longhorn'
157+
158+
# REDIS(外部を使うならURLを入れる)
159+
remote_redis_url: ''
160+
161+
# POSTGRES(外部DBを使う場合はURLを入れる)
162+
pgdb_username: plane
163+
pgdb_password: plane
164+
pgdb_name: plane
165+
pgdb_remote_url: ''
166+
167+
# S3/MinIO(★既存MinIOを使うため、ここが肝心)
168+
docstore_bucket: 'uploads'
169+
doc_upload_size_limit: '5242880' # 5MB
170+
aws_access_key: '' # ← Secret優先、空でOK
171+
aws_secret_access_key: '' # ← Secret優先、空でOK
172+
aws_region: 'us-east-1' # MinIOでもダミーでOK
173+
# 既存 MinIO のエンドポイント(Ingress経由でTLSなら https を指定)
174+
aws_s3_endpoint_url: 'https://s3.yadon3141.com'
175+
use_storage_proxy: false
176+
177+
secret_key: "60gp0byfz2dvffa45cxl20p1scy9xbpf6d8c5y0geejgkyp1b5"
178+
api_key_rate_limit: "60/minute"
179+
180+
sentry_dsn: ''
181+
sentry_environment: ''
182+
cors_allowed_origins: 'https://plane.yadon3141.com'
183+
instance_admin_email: 'admin@plane.yadon3141.com'
184+
185+
live_sentry_dsn: ""
186+
live_sentry_environment: ""
187+
live_sentry_traces_sample_rate: ""
188+
live_server_secret_key: "htbqvBJAgpm9bzvf3r4urJer0ENReatceh"
189+
external_iframely_url: ""
190+
191+
silo_envs:
192+
sentry_dsn: ''
193+
sentry_environment: ''
194+
sentry_traces_sample_rate: ''
195+
batch_size: 100
196+
mq_prefetch_count: 1
197+
request_interval: 400
198+
hmac_secret_key: ''
199+
aes_secret_key: 'dsOdt7YrvxsTIFJ37pOaEVvLxN8KGBCr'
200+
cors_allowed_origins: 'https://plane.yadon3141.com'
201+
202+
email_service_envs:
203+
smtp_domain: ''
204+
205+
outbox_poller_envs:
206+
memory_limit_mb: 400
207+
interval_min: 0.25
208+
interval_max: 2
209+
batch_size: 250
210+
memory_check_interval: 30
211+
pool:
212+
size: 4
213+
min_size: 2
214+
max_size: 10
215+
timeout: 30.0
216+
max_idle: 300.0
217+
max_lifetime: 3600
218+
reconnect_timeout: 5.0
219+
health_check_interval: 60
220+
221+
automation_consumer_envs:
222+
event_stream_queue_name: "plane.event_stream.automations"
223+
event_stream_prefetch: 10
224+
exchange_name: "plane.event_stream"
225+
event_types: "issue"
226+
227+
extraEnv: []
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
apiVersion: argoproj.io/v1alpha1
22
kind: Application
33
metadata:
4-
name: plane
4+
name: argocd
55
namespace: argocd
66
spec:
77
project: default
88
sources:
9-
- repoURL: https://helm.plane.so
10-
chart: plane-ce
11-
targetRevision: 1.5.0
12-
helm:
13-
releaseName: plane
14-
valueFiles:
15-
- $values/plane/values.yaml
169
- repoURL: https://github.com/yadon-infra/manifest
1710
targetRevision: main
1811
ref: values
1912
destination:
2013
server: https://kubernetes.default.svc
21-
namespace: plane
14+
namespace: argocd
2215
syncPolicy:
2316
automated:
2417
prune: true

apps/apps/harbor.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: harbor
5+
namespace: argocd
6+
spec:
7+
project: default
8+
source:
9+
repoURL: https://github.com/yadon-infra/manifest
10+
targetRevision: main
11+
path: harbor
12+
destination:
13+
server: https://kubernetes.default.svc
14+
namespace: harbor
15+
syncPolicy:
16+
automated:
17+
prune: true
18+
selfHeal: true
19+
syncOptions:
20+
- CreateNamespace=true
21+
- ServerSideApply=true
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
apiVersion: argoproj.io/v1alpha1
22
kind: Application
33
metadata:
4-
name: longhorn-resources
4+
name: longhorn
55
namespace: argocd
66
spec:
77
project: default
88
source:
99
repoURL: https://github.com/yadon-infra/manifest
1010
targetRevision: main
1111
path: longhorn
12-
directory:
13-
include: '{ingress.yaml,namespace.yaml}'
1412
destination:
1513
server: https://kubernetes.default.svc
1614
namespace: longhorn-system
@@ -19,4 +17,5 @@ spec:
1917
prune: true
2018
selfHeal: true
2119
syncOptions:
22-
- ServerSideApply=true
20+
- CreateNamespace=true
21+
- ServerSideApply=true

0 commit comments

Comments
 (0)