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

Create immich.yaml #352

Merged
merged 24 commits into from
Sep 3, 2024
Merged

Create immich.yaml #352

merged 24 commits into from
Sep 3, 2024

Conversation

volschin
Copy link
Owner

No description provided.

Copy link

github-actions bot commented Jul 19, 2024

--- kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/cups-server

+++ kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/cups-server

@@ -32,11 +32,11 @@

       name: cluster-user-secrets
       optional: true
   prune: true
   retryInterval: 1m
   sourceRef:
     kind: GitRepository
-    name: home-kubernetes
+    name: home-ops
   targetNamespace: office
   timeout: 5m
   wait: false
 
--- kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/immich

+++ kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/immich

@@ -0,0 +1,43 @@

+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1
+kind: Kustomization
+metadata:
+  labels:
+    kustomize.toolkit.fluxcd.io/name: cluster-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+    substitution.flux.home.arpa/enabled: 'true'
+  name: immich
+  namespace: flux-system
+spec:
+  commonMetadata:
+    labels:
+      app.kubernetes.io/name: immich
+  decryption:
+    provider: sops
+    secretRef:
+      name: sops-age
+  dependsOn:
+  - name: postgres-cluster
+  - name: dragonfly-cluster
+  - name: external-secrets-stores
+  interval: 60m
+  path: ./kubernetes/apps/office/immich/app
+  postBuild:
+    substituteFrom:
+    - kind: ConfigMap
+      name: cluster-settings
+    - kind: Secret
+      name: cluster-secrets
+    - kind: ConfigMap
+      name: cluster-user-settings
+      optional: true
+    - kind: Secret
+      name: cluster-user-secrets
+      optional: true
+  prune: true
+  sourceRef:
+    kind: GitRepository
+    name: home-ops
+  targetNamespace: office
+  wait: true
+
--- kubernetes/apps/office/cups-server/app Kustomization: flux-system/cups-server HelmRelease: office/cups

+++ kubernetes/apps/office/cups-server/app Kustomization: flux-system/cups-server HelmRelease: office/cups

@@ -1,82 +0,0 @@

----
-apiVersion: helm.toolkit.fluxcd.io/v2
-kind: HelmRelease
-metadata:
-  labels:
-    app.kubernetes.io/name: cups-server
-    kustomize.toolkit.fluxcd.io/name: cups-server
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: cups
-  namespace: office
-spec:
-  chart:
-    spec:
-      chart: app-template
-      interval: 15m
-      sourceRef:
-        kind: HelmRepository
-        name: bjw-s
-        namespace: flux-system
-      version: 1.5.1
-  install:
-    createNamespace: true
-    remediation:
-      retries: 3
-  interval: 15m
-  maxHistory: 2
-  uninstall:
-    keepHistory: false
-  upgrade:
-    cleanupOnFail: true
-    remediation:
-      retries: 3
-  values:
-    env:
-      TZ: Europe/Berlin
-    image:
-      repository: docker.io/olbat/cupsd
-      tag: stable-2024-08-09@sha256:da6bcbac3990df8376bfacebddaca22d6ba49962d829dbb787a3e25c26aaa5e8
-    ingress:
-      main:
-        annotations:
-          hajimari.io/enable: 'true'
-          hajimari.io/icon: print
-        enabled: true
-        hosts:
-        - host: print...PLACEHOLDER..
-          paths:
-          - path: /
-            pathType: Prefix
-        ingressClassName: internal
-        tls:
-        - hosts:
-          - print...PLACEHOLDER..
-    persistence:
-      config:
-        enabled: true
-        mountPath: /etc/cups/cupsd.conf
-        name: cupsd-conf
-        readOnly: true
-        subPath: cupsd.conf
-        type: configMap
-      dbus:
-        enabled: true
-        hostPath: /var/run/dbus
-        mountPath: /var/run/dbus
-        type: hostPath
-    podAnnotations:
-      secret.reloader.stakater.com/reload: cups
-    service:
-      main:
-        annotations:
-          io.cilium/lb-ipam-ips: 192.168.2.110
-        externalTrafficPolicy: Cluster
-        ports:
-          http:
-            port: 631
-          udp:
-            enabled: true
-            port: 631
-            protocol: UDP
-        type: LoadBalancer
-

@volschin volschin marked this pull request as ready for review September 3, 2024 19:57
Copy link

github-actions bot commented Sep 3, 2024

--- HelmRelease: office/cups Service: office/cups

+++ HelmRelease: office/cups Service: office/cups

@@ -1,28 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  name: cups
-  labels:
-    app.kubernetes.io/service: cups
-    app.kubernetes.io/instance: cups
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/name: cups
-  annotations:
-    io.cilium/lb-ipam-ips: 192.168.2.110
-spec:
-  type: LoadBalancer
-  externalTrafficPolicy: Cluster
-  ports:
-  - port: 631
-    targetPort: http
-    protocol: TCP
-    name: http
-  - port: 631
-    targetPort: udp
-    protocol: UDP
-    name: udp
-  selector:
-    app.kubernetes.io/instance: cups
-    app.kubernetes.io/name: cups
-
--- HelmRelease: office/cups Deployment: office/cups

+++ HelmRelease: office/cups Deployment: office/cups

@@ -1,80 +0,0 @@

----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
-  name: cups
-  labels:
-    app.kubernetes.io/instance: cups
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/name: cups
-spec:
-  revisionHistoryLimit: 3
-  replicas: 1
-  strategy:
-    type: Recreate
-  selector:
-    matchLabels:
-      app.kubernetes.io/name: cups
-      app.kubernetes.io/instance: cups
-  template:
-    metadata:
-      annotations:
-        secret.reloader.stakater.com/reload: cups
-      labels:
-        app.kubernetes.io/name: cups
-        app.kubernetes.io/instance: cups
-    spec:
-      serviceAccountName: default
-      automountServiceAccountToken: true
-      dnsPolicy: ClusterFirst
-      enableServiceLinks: true
-      containers:
-      - name: cups
-        image: docker.io/olbat/cupsd:stable-2024-08-09@sha256:da6bcbac3990df8376bfacebddaca22d6ba49962d829dbb787a3e25c26aaa5e8
-        imagePullPolicy: null
-        env:
-        - name: TZ
-          value: Europe/Berlin
-        ports:
-        - name: http
-          containerPort: 631
-          protocol: TCP
-        - name: udp
-          containerPort: 631
-          protocol: UDP
-        volumeMounts:
-        - name: config
-          mountPath: /etc/cups/cupsd.conf
-          subPath: cupsd.conf
-          readOnly: true
-        - name: dbus
-          mountPath: /var/run/dbus
-        livenessProbe:
-          failureThreshold: 3
-          initialDelaySeconds: 0
-          periodSeconds: 10
-          tcpSocket:
-            port: 631
-          timeoutSeconds: 1
-        readinessProbe:
-          failureThreshold: 3
-          initialDelaySeconds: 0
-          periodSeconds: 10
-          tcpSocket:
-            port: 631
-          timeoutSeconds: 1
-        startupProbe:
-          failureThreshold: 30
-          initialDelaySeconds: 0
-          periodSeconds: 5
-          tcpSocket:
-            port: 631
-          timeoutSeconds: 1
-      volumes:
-      - name: config
-        configMap:
-          name: cupsd-conf
-      - name: dbus
-        hostPath:
-          path: /var/run/dbus
-
--- HelmRelease: office/cups Ingress: office/cups

+++ HelmRelease: office/cups Ingress: office/cups

@@ -1,29 +0,0 @@

----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  name: cups
-  labels:
-    app.kubernetes.io/instance: cups
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/name: cups
-  annotations:
-    hajimari.io/enable: 'true'
-    hajimari.io/icon: print
-spec:
-  ingressClassName: internal
-  tls:
-  - hosts:
-    - print...PLACEHOLDER..
-  rules:
-  - host: print...PLACEHOLDER..
-    http:
-      paths:
-      - path: /
-        pathType: Prefix
-        backend:
-          service:
-            name: cups
-            port:
-              number: 631
-

@volschin volschin merged commit 1e1c73e into main Sep 3, 2024
7 checks passed
@volschin volschin deleted the immich branch September 3, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant