Upgrading from v1.x to v2.x
Given the following real-life example values.yaml for app-template v1:
image: repository: ghcr.io/onedr0p/sabnzbd tag: latest pullPolicy: IfNotPresent
podSecurityContext: runAsUser: 568 runAsGroup: 568 fsGroup: 568 fsGroupChangePolicy: "OnRootMismatch" supplementalGroups: - 65539
service: main: ports: http: port: 8080
ingress: media: enabled: true ingressClassName: "ingress-nginx" hosts: - host: sabnzbd.bjw-s.dev paths: - path: /
persistence: media: enabled: true existingClaim: nas-media globalMounts: - path: /data/nas-media
probes: liveness: enabled: false readiness: enabled: false startup: enabled: falseThe values for app-template v2.x would become this:
defaultPodOptions: securityContext: runAsUser: 568 runAsGroup: 568 fsGroup: 568 fsGroupChangePolicy: "OnRootMismatch" supplementalGroups: - 65539
controllers: main: containers: main: image: repository: ghcr.io/onedr0p/sabnzbd tag: latest pullPolicy: IfNotPresent
probes: liveness: enabled: false readiness: enabled: false startup: enabled: false
service: main: ports: http: port: 8080
ingress: media: enabled: true className: "ingress-nginx" hosts: - host: sabnzbd.bjw-s.dev paths: - path: / service: name: main port: http
persistence: media: existingClaim: nas-media globalMounts: - path: /data/nas-mediaChanges in this example
Section titled “Changes in this example”This is not meant as an exhaustive list of changes, but rather a “most common” example.
podSecurityContexthas been moved todefaultPodOptions.securityContext. It is also possible to configure this on a controller-specific basis by moving it tocontrollers.main.pod.securityContextinstead.imagehas been moved tocontrollers.main.containers.main.imageso that multiple containers can be configured.ingress.media.ingressClassNamehas been renamed toingress.main.className.ingress.media.enabledcan be removed, since items are considered enabled by default (they can still be disabled by addingenabled: false).ingress.media.hosts.*.paths.*.serviceis now required since there is no more concept of a default “primary” service.persistence.media.mountPathhas been moved topersistence.media.globalMounts.*.pathto allow multiple mountPaths for the same persistence item.persistence.media.enabledcan be removed, since items are considered enabled by default (they can still be disabled by addingenabled: false).probeshas been moved tocontrollers.main.containers.main.probesso that multiple containers can be configured.