Skip to content

Commit 508438d

Browse files
committed
feat(apps/prod2): add git-cdn cache deployment
Add namespace policy to avoid ARM64 nodes for cache pods Update git-cdn chart version to 1.13.0-oss
1 parent 9a4fc0e commit 508438d

File tree

8 files changed

+70
-1
lines changed

8 files changed

+70
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- release.yaml
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
apiVersion: helm.toolkit.fluxcd.io/v2beta1
2+
kind: HelmRelease
3+
metadata:
4+
name: git-cdn
5+
spec:
6+
releaseName: git-cdn
7+
chart:
8+
spec:
9+
chart: git-cdn
10+
version: 0.1.0
11+
sourceRef:
12+
kind: HelmRepository
13+
name: ee-ops
14+
namespace: flux-system
15+
interval: 5m
16+
timeout: 5m
17+
install:
18+
remediation:
19+
retries: 3
20+
rollback:
21+
cleanupOnFail: true
22+
recreate: true
23+
upgrade:
24+
cleanupOnFail: true
25+
remediation:
26+
retries: 3
27+
test:
28+
enable: true
29+
ignoreFailures: false
30+
values:
31+
image:
32+
tag: 1.13.0-oss
33+
replicaCount: 1
34+
resources:
35+
limits:
36+
cpu: "4"
37+
memory: 4Gi
38+
nodeSelector:
39+
kubernetes.io/arch: amd64
40+
volumeMounts:
41+
- name: data
42+
mountPath: /data
43+
volumes:
44+
- name: data
45+
emptyDir: {}
46+
configuration:
47+
GITSERVER_UPSTREAM: https://github.com/
48+
PACK_CACHE_SIZE_GB: 100
49+
# directory where to put cache files
50+
WORKING_DIRECTORY: /data
51+
PACK_CACHE_MULTI: true
52+
PACK_CACHE_DEPTH: true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
namespace: cache
4+
resources:
5+
- namespace.yaml
6+
- git-cdn

apps/prod2/cache/namespace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: cache

apps/prod2/cluster-policies/avoid-application-pods-run-on-arm64-nodes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ spec:
2020
- tekton-pipelines
2121
- tibuild
2222
- zot
23+
- cache
2324
mutate:
2425
patchStrategicMerge:
2526
spec:

apps/prod2/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resources:
88
- publisher
99
- zot
1010
- cloudevents-server
11+
- cache
1112
- tibuild # experiment for v2
1213
- buildbarn # experiment
1314
- jenkins/beta # experiment

apps/prod2/tekton/configs/secrets/github-pat-secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
metadata:
1414
annotations:
1515
tekton.dev/git-0: https://github.com
16+
tekton.dev/git-1: http://git-cdn.cache.svc:8000
1617
data:
1718
- secretKey: username
1819
remoteRef:

charts/git-cdn/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ version: 0.1.0
2727
# incremented each time you make changes to the application. Versions are not expected to
2828
# follow Semantic Versioning. They should reflect the version the application is using.
2929
# It is recommended to use it with quotes.
30-
appVersion: "1.10.2"
30+
appVersion: "1.13.0-oss"

0 commit comments

Comments
 (0)