Skip to content

Commit 00790bd

Browse files
committed
Initial setup for backpan-syncer
1 parent 8c64f66 commit 00790bd

File tree

7 files changed

+88
-0
lines changed

7 files changed

+88
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- ./project.yaml
6+
- ./prod_application.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: apps--backpan-syncer
5+
namespace: argocd
6+
spec:
7+
project: backpan-syncer
8+
source:
9+
repoURL: https://github.com/metacpan/metacpan-k8s
10+
targetRevision: main
11+
path: apps/backpan-syncer/environments/prod
12+
destination:
13+
server: https://kubernetes.default.svc
14+
namespace: apps--backpan-syncer
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: AppProject
3+
metadata:
4+
name: backpan-syncer
5+
namespace: argocd
6+
spec:
7+
# Project description
8+
description: Syncing of BackPan + CPAN.org updates to B2
9+
10+
sourceRepos:
11+
- '*'
12+
13+
clusterResourceWhitelist:
14+
- group: ''
15+
kind: 'Namespace'
16+
17+
destinations:
18+
- namespace: apps--backpan-syncer
19+
server: https://kubernetes.default.svc
20+
name: in-cluster
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: backpan-syncer
6+
labels:
7+
app: backpan-syncer
8+
spec:
9+
replicas: 1
10+
selector:
11+
matchLabels:
12+
app: backpan-syncer
13+
template:
14+
metadata:
15+
labels:
16+
app: backpan-syncer
17+
spec:
18+
containers:
19+
- name: backpan-syncer
20+
image: metacpan/metacpan-backpan-syncer:latest
21+
imagePullPolicy: Always
22+
# Should change to /sbin/run.sh once data is sorted
23+
command: ["sh"]
24+
args:
25+
- "-c"
26+
- "/usr/bin/sleep infinity"
27+
# This container needs to use fuse so needs privileges
28+
securityContext:
29+
privileged: true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- ./deployment.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
namespace: apps--backpan-syncer
4+
resources:
5+
- namespace.yaml
6+
- ../../base/
7+
images:
8+
- name: metacpan/metacpan-backpan-syncer
9+
newTag: latest
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: apps--backpan-syncer

0 commit comments

Comments
 (0)