Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions kubernetes/argocd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- httproute.yaml
- secrets.yaml

patches:
- target:
Expand Down
26 changes: 15 additions & 11 deletions kubernetes/bootstrap/argocd-root-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ metadata:
namespace: argocd
spec:
project: system
source:
repoURL: git@github.com:jackweinbender/infrastructure.git
path: kubernetes/argo-applications
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
source:
repoURL: git@github.com:jackweinbender/infrastructure.git
path: kubernetes/argo-applications
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
syncOptions:
- CreateNamespace=true
- Validate=true
- Prune=true
automated:
prune: true
selfHeal: true
6 changes: 3 additions & 3 deletions kubernetes/cert-manager/cloudflare-api-token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: cert-manager
annotations:
argocd.argoproj.io/sync-options: "Force=true,Replace=true"
k8s-secret-sync.weinbender.io/provider: "op"
k8s-secret-sync.weinbender.io/secret-key: "api-token"
k8s-secret-sync.weinbender.io/ref: "op://microk8s/cloudflare-auth-weinbenderio/credential"
"k8s-secret-sync.weinbender.io/provider-name": "op"
"k8s-secret-sync.weinbender.io/secret-key": "api-token"
"k8s-secret-sync.weinbender.io/provider-ref": "op://microk8s/cloudflare-auth-weinbenderio/credential"
type: Opaque
2 changes: 1 addition & 1 deletion kubernetes/immich/httproute.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: immich
Expand Down
8 changes: 5 additions & 3 deletions kubernetes/immich/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ resources:
- service-ml.yaml
- httproute.yaml

commonLabels:
app.kubernetes.io/name: immich
app.kubernetes.io/part-of: immich
labels:
- pairs:
app.kubernetes.io/name: immich
app.kubernetes.io/part-of: immich
includeSelectors: false
1 change: 0 additions & 1 deletion kubernetes/immich/todo.txt

This file was deleted.

20 changes: 20 additions & 0 deletions kubernetes/jellyfin/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
securityContext:
# these settings ensure that Jellyfin runs with the correct user and group IDs
# which are necessary for file permissions on the host system
runAsNonRoot: true
runAsUser: 101000
runAsGroup: 110000
fsGroup: 110000
Expand All @@ -24,21 +25,40 @@ spec:
image: jellyfin/jellyfin:latest
ports:
- containerPort: 8096
name: http
- containerPort: 8920
name: https
volumeMounts:
- name: jellyfin-config
mountPath: /config
- name: jellyfin-cache
mountPath: /cache
- name: jellyfin-media
mountPath: /media
livenessProbe:
httpGet:
path: /health
port: 8096
initialDelaySeconds: 30
periodSeconds: 30
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 8096
initialDelaySeconds: 10
periodSeconds: 15
failureThreshold: 3
volumes:
- name: jellyfin-config
hostPath:
path: /home/nas/shared/pvcs/jellyfin-config
type: DirectoryOrCreate
- name: jellyfin-cache
hostPath:
path: /home/nas/shared/pvcs/jellyfin-cache
type: DirectoryOrCreate
- name: jellyfin-media
hostPath:
path: /home/nas/media
type: DirectoryOrCreate
2 changes: 1 addition & 1 deletion kubernetes/jellyfin/httproute.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: gateway.networking.k8s.io/v1beta1
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: jellyfin
Expand Down
15 changes: 15 additions & 0 deletions kubernetes/jellyfin/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: jellyfin

resources:
- deployment.yaml
- service.yaml
- httproute.yaml

labels:
- pairs:
app.kubernetes.io/name: jellyfin
app.kubernetes.io/part-of: jellyfin
includeSelectors: false
7 changes: 0 additions & 7 deletions kubernetes/otel-operator/node_exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ spec:
ports:
- containerPort: 9100
protocol: TCP
resources:
limits:
cpu: 250m
memory: 180Mi
requests:
cpu: 102m
memory: 180Mi
volumeMounts:
- mountPath: /host/sys
mountPropagation: HostToContainer
Expand Down
8 changes: 5 additions & 3 deletions kubernetes/redis/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ resources:
- deployment.yaml
- service.yaml

commonLabels:
app.kubernetes.io/name: redis
app.kubernetes.io/part-of: infrastructure
labels:
- pairs:
app.kubernetes.io/name: redis
app.kubernetes.io/part-of: infrastructure
includeSelectors: false