Skip to content

Commit

Permalink
feat(apps/prod): add git-cdn instance (#821)
Browse files Browse the repository at this point in the history
We can use it in CI/CD flows:

```bash
git config --global url."http://git-cdn.apps.svc:8080/".insteadOf https://github.com/

git clone https://github.com/pingcap/tidb.git

```

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Dec 4, 2023
1 parent 469ac5d commit bd7f525
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/prod/cloudevents-server/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: cloudevents-server
namespace: flux-system
spec:
releaseName: cloudevents-server
targetNamespace: apps
chart:
spec:
chart: cloudevents-server
Expand Down
5 changes: 5 additions & 0 deletions apps/prod/git-cdn/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: apps
resources:
- release.yaml
48 changes: 48 additions & 0 deletions apps/prod/git-cdn/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: git-cdn
spec:
releaseName: git-cdn
chart:
spec:
chart: git-cdn
version: 0.1.0
sourceRef:
kind: HelmRepository
name: ee-ops
namespace: flux-system
interval: 5m
timeout: 5m
install:
remediation:
retries: 3
rollback:
cleanupOnFail: true
recreate: true
upgrade:
cleanupOnFail: true
remediation:
retries: 3
test:
enable: true
ignoreFailures: false
values:
replicaCount: 1
resources:
limits:
cpu: "4"
memory: 4Gi
nodeSelector:
kubernetes.io/arch: amd64
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
emptyDir: {}
configuration:
GITSERVER_UPSTREAM: https://github.com/
PACK_CACHE_SIZE_GB: 20
# directory where to put cache files
WORKING_DIRECTORY: /data
1 change: 1 addition & 0 deletions apps/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ resources:
- jenkins-beta
- cloudevents-server
- boskos
- git-cdn

0 comments on commit bd7f525

Please sign in to comment.