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

set "setGateway" pod annotation instead of deployment annotation #84

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

jgilfoil
Copy link
Owner

No description provided.

Copy link

--- HelmRelease: media/prowlarr Deployment: media/prowlarr

+++ HelmRelease: media/prowlarr Deployment: media/prowlarr

@@ -7,25 +7,26 @@

     app.kubernetes.io/component: main
     app.kubernetes.io/instance: prowlarr
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/name: prowlarr
   annotations:
     reloader.stakater.com/auto: 'true'
-    setGateway: 'true'
 spec:
   revisionHistoryLimit: 3
   replicas: 1
   strategy:
     type: Recreate
   selector:
     matchLabels:
       app.kubernetes.io/component: main
       app.kubernetes.io/name: prowlarr
       app.kubernetes.io/instance: prowlarr
   template:
     metadata:
+      annotations:
+        setGateway: 'true'
       labels:
         app.kubernetes.io/component: main
         app.kubernetes.io/instance: prowlarr
         app.kubernetes.io/name: prowlarr
     spec:
       enableServiceLinks: true

Copy link

--- kubernetes/apps/media/prowlarr/app Kustomization: flux-system/prowlarr HelmRelease: media/prowlarr

+++ kubernetes/apps/media/prowlarr/app Kustomization: flux-system/prowlarr HelmRelease: media/prowlarr

@@ -36,13 +36,12 @@

       retries: 3
   values:
     controllers:
       main:
         annotations:
           reloader.stakater.com/auto: 'true'
-          setGateway: 'true'
         containers:
           main:
             env:
               COMPlus_EnableDiagnostics: '0'
               PROWLARR__INSTANCE_NAME: Prowlarr
               PROWLARR__LOG_LEVEL: info
@@ -93,12 +92,15 @@

           securityContext:
             fsGroup: 568
             fsGroupChangePolicy: OnRootMismatch
             runAsGroup: 568
             runAsNonRoot: true
             runAsUser: 568
+    defaultPodOptions:
+      annotations:
+        setGateway: 'true'
     ingress:
       main:
         className: internal
         enabled: true
         hosts:
         - host: prowlarr.

@jgilfoil jgilfoil merged commit ef540e1 into main Feb 29, 2024
5 checks passed
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