Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: reorganise/update apps #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: test sonarr
Signed-off-by: Ionut Ilie <[email protected]>
ionutvilie committed Nov 9, 2023
commit 1b9e7749c8f77e373cb2bcecba6f637ad4cbf37d
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: sonarr
spec:
serviceName: sonarr
replicas: 1
selector:
matchLabels:
6 changes: 3 additions & 3 deletions ak1pro/apps/base/sonarr/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: prod
namespace: staging

labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: sonarr

resources:
- sonarr-sts.yaml
- sonarr-svc.yaml
- deployment.yaml
- service.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ kind: Service
metadata:
name: sonarr
spec:
type: LoadBalancer
type: ClusterIP
selector:
app.kubernetes.io/name: sonarr
ports:
23 changes: 23 additions & 0 deletions ak1pro/apps/staging/sonarr/httpRoute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: sonarr-prod
namespace: prod
spec:
parentRefs:
- kind: Gateway
name: envoy-gateway
namespace: kube-public
sectionName: https
hostnames:
- "sonarr.ak1pro.n1l.ro"
- "sonarr-prod.ak1pro.n1l.ro"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: sonarr
port: 80
17 changes: 17 additions & 0 deletions ak1pro/apps/staging/sonarr/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: staging

labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: sonarr

resources:
- ../../base/sonarr
- httproute.yaml

images:
- name: lscr.io/linuxserver/sonarr:latest
newName: lscr.io/linuxserver/sonarr
newTag: develop