Skip to content

Commit cd39946

Browse files
committed
update ns-dev-system configuration
1 parent d5bb798 commit cd39946

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: ns-gitea-integration
5+
6+
spec:
7+
type: ClusterIP
8+
selector:
9+
app: ns-gitea-integration
10+
ports:
11+
- port: 10001
12+
targetPort: grpc
13+
name: grpc

ns-dev-system/components/gitea-integration-stateful-set-patch.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ spec:
1313
- name: ns-gitea-integration
1414
image: ns-gitea-integration-dev
1515
imagePullPolicy: Always
16+
ports:
17+
- containerPort: 10001
18+
name: grpc
1619
resources:
1720
requests:
1821
cpu: "10m"

ns-dev-system/config/ns.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ components:
117117
cpu: "200m"
118118
memory: "100Mi"
119119

120+
giteaIntegration:
121+
enable: true
122+
url: http://ns-gitea-integration.ns-dev-system.svc.cluster.local:10001
123+
120124
ssh:
121125
host: ns-dev.trapti.tech
122126
port: 2202
@@ -160,10 +164,9 @@ components:
160164
+ container_memory_swap{namespace="ns-dev-apps", pod="nsapp-{{ .App.ID }}-0", container="app"}
161165
162166
giteaIntegration:
167+
port: 10001
163168
url: https://git.trap.jp
164169
# token: <env secret>
165-
controller:
166-
url: http://ns-controller.ns-dev-system.svc.cluster.local:10000
167170

168171
ssgen:
169172
artifactsRoot: /artifacts

ns-dev-system/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resources:
33
- app-namespace.yaml
44
- components/controller-cluster-role-binding.yaml
55
- components/sablier-cluster-role-binding.yaml
6+
- components/gitea-integration-service.yaml
67

78
patches:
89
- path: components/builder-deployment-patch.yaml

0 commit comments

Comments
 (0)