
-------------------------------------
1) Describe 'Deployments' resources
-------------------------------------

Name:                   csi-nfs-controller
Namespace:              kube-system
CreationTimestamp:      Tue, 20 Feb 2024 15:44:14 -0800
Labels:                 objectset.rio.cattle.io/hash=e20aeb27d825538dc5fa9f4d82c2fe2058f8374c
Annotations:            deployment.kubernetes.io/revision: 1
                        objectset.rio.cattle.io/applied:
                          H4sIAAAAAAAA/8RW4W/bthP9V3449EMLSLbjxG0qwB/yi9Mt2OoadbFhKIKCJk/2zRTJkZQaL9D/PhwlJ87WpEGBoh8MyDze8d177yjdgHD0G/pA1kABwrkwbI4ggy0ZBQXM0Gm7q9...
                        objectset.rio.cattle.io/id: 
                        objectset.rio.cattle.io/owner-gvk: k3s.cattle.io/v1, Kind=Addon
                        objectset.rio.cattle.io/owner-name: nfs-csi
                        objectset.rio.cattle.io/owner-namespace: kube-system
Selector:               app=csi-nfs-controller
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:           app=csi-nfs-controller
  Service Account:  csi-nfs-controller-sa
  Containers:
   csi-provisioner:
    Image:      registry.k8s.io/sig-storage/csi-provisioner:v3.5.0
    Port:       <none>
    Host Port:  <none>
    Args:
      -v=2
      --csi-address=$(ADDRESS)
      --leader-election
      --leader-election-namespace=kube-system
      --extra-create-metadata=true
    Limits:
      memory:  400Mi
    Requests:
      cpu:     10m
      memory:  20Mi
    Environment:
      ADDRESS:  /csi/csi.sock
    Mounts:
      /csi from socket-dir (rw)
   csi-snapshotter:
    Image:      registry.k8s.io/sig-storage/csi-snapshotter:v6.2.2
    Port:       <none>
    Host Port:  <none>
    Args:
      --v=2
      --csi-address=$(ADDRESS)
      --leader-election-namespace=kube-system
      --leader-election
    Limits:
      memory:  200Mi
    Requests:
      cpu:     10m
      memory:  20Mi
    Environment:
      ADDRESS:  /csi/csi.sock
    Mounts:
      /csi from socket-dir (rw)
   liveness-probe:
    Image:      registry.k8s.io/sig-storage/livenessprobe:v2.10.0
    Port:       <none>
    Host Port:  <none>
    Args:
      --csi-address=/csi/csi.sock
      --probe-timeout=3s
      --health-port=29652
      --v=2
    Limits:
      memory:  100Mi
    Requests:
      cpu:        10m
      memory:     20Mi
    Environment:  <none>
    Mounts:
      /csi from socket-dir (rw)
   nfs:
    Image:      registry.k8s.io/sig-storage/nfsplugin:v4.4.0
    Port:       29652/TCP
    Host Port:  29652/TCP
    Args:
      -v=5
      --nodeid=$(NODE_ID)
      --endpoint=$(CSI_ENDPOINT)
    Limits:
      memory:  200Mi
    Requests:
      cpu:     10m
      memory:  20Mi
    Liveness:  http-get http://:healthz/healthz delay=30s timeout=10s period=30s #success=1 #failure=5
    Environment:
      NODE_ID:        (v1:spec.nodeName)
      CSI_ENDPOINT:  unix:///csi/csi.sock
    Mounts:
      /csi from socket-dir (rw)
      /var/lib/kubelet/pods from pods-mount-dir (rw)
  Volumes:
   pods-mount-dir:
    Type:          HostPath (bare host directory volume)
    Path:          /var/lib/kubelet/pods
    HostPathType:  Directory
   socket-dir:
    Type:               EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:             
    SizeLimit:          <unset>
  Priority Class Name:  system-cluster-critical
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Progressing    True    NewReplicaSetAvailable
  Available      True    MinimumReplicasAvailable
OldReplicaSets:  <none>
NewReplicaSet:   csi-nfs-controller-7b74694749 (1/1 replicas created)
Events:          <none>


Name:                   csi-smb-controller
Namespace:              kube-system
CreationTimestamp:      Tue, 20 Feb 2024 15:44:15 -0800
Labels:                 objectset.rio.cattle.io/hash=dcff83f97210cf176ea098fd305c31dad9e74663
Annotations:            deployment.kubernetes.io/revision: 1
                        objectset.rio.cattle.io/applied:
                          H4sIAAAAAAAA/8RW32/bNhD+V4ZDHzpAcqw4SRsBfijibAu2ekYdbA+FMdDU2bqZIjnypMYL9L8PpGRHwZIu7TAMQQD6jvfr+z6ddA/C0i/oPBkNOQhr/UmTQQI70gXkMEOrzL5CzZ...
                        objectset.rio.cattle.io/id: 
                        objectset.rio.cattle.io/owner-gvk: k3s.cattle.io/v1, Kind=Addon
                        objectset.rio.cattle.io/owner-name: smb-csi
                        objectset.rio.cattle.io/owner-namespace: kube-system
Selector:               app=csi-smb-controller
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:           app=csi-smb-controller
  Service Account:  csi-smb-controller-sa
  Containers:
   csi-provisioner:
    Image:      registry.k8s.io/sig-storage/csi-provisioner:v3.5.0
    Port:       <none>
    Host Port:  <none>
    Args:
      -v=2
      --csi-address=$(ADDRESS)
      --leader-election
      --leader-election-namespace=kube-system
      --extra-create-metadata=true
    Limits:
      cpu:     1
      memory:  300Mi
    Requests:
      cpu:     10m
      memory:  20Mi
    Environment:
      ADDRESS:  /csi/csi.sock
    Mounts:
      /csi from socket-dir (rw)
   liveness-probe:
    Image:      registry.k8s.io/sig-storage/livenessprobe:v2.10.0
    Port:       <none>
    Host Port:  <none>
    Args:
      --csi-address=/csi/csi.sock
      --probe-timeout=3s
      --health-port=29642
      --v=2
    Limits:
      cpu:     1
      memory:  100Mi
    Requests:
      cpu:        10m
      memory:     20Mi
    Environment:  <none>
    Mounts:
      /csi from socket-dir (rw)
   smb:
    Image:       registry.k8s.io/sig-storage/smbplugin:v1.11.0
    Ports:       29642/TCP, 29644/TCP
    Host Ports:  29642/TCP, 29644/TCP
    Args:
      --v=5
      --endpoint=$(CSI_ENDPOINT)
      --metrics-address=0.0.0.0:29644
    Limits:
      memory:  200Mi
    Requests:
      cpu:     10m
      memory:  20Mi
    Liveness:  http-get http://:healthz/healthz delay=30s timeout=10s period=30s #success=1 #failure=5
    Environment:
      CSI_ENDPOINT:  unix:///csi/csi.sock
    Mounts:
      /csi from socket-dir (rw)
  Volumes:
   socket-dir:
    Type:               EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:             
    SizeLimit:          <unset>
  Priority Class Name:  system-cluster-critical
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Progressing    True    NewReplicaSetAvailable
  Available      True    MinimumReplicasAvailable
OldReplicaSets:  <none>
NewReplicaSet:   csi-smb-controller-7fbbb8fb6f (1/1 replicas created)
Events:          <none>


Name:                   coredns
Namespace:              kube-system
CreationTimestamp:      Tue, 20 Feb 2024 15:44:14 -0800
Labels:                 k8s-app=kube-dns
                        kubernetes.io/name=CoreDNS
                        objectset.rio.cattle.io/hash=bce283298811743a0386ab510f2f67ef74240c57
Annotations:            deployment.kubernetes.io/revision: 1
                        objectset.rio.cattle.io/applied:
                          H4sIAAAAAAAA/6xVQW/bOBP9Kx/mLMVW0jaugO/QtbPboq3XqJNeCqOgqZHFNcXhkiMnRqD/vhjJduw2TdrFniyTb4ZvHucN70F58xlDNOQgB+V9HGwySGBtXAE5TNBb2tboGBKokV...
                        objectset.rio.cattle.io/id: 
                        objectset.rio.cattle.io/owner-gvk: k3s.cattle.io/v1, Kind=Addon
                        objectset.rio.cattle.io/owner-name: coredns
                        objectset.rio.cattle.io/owner-namespace: kube-system
Selector:               k8s-app=kube-dns
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  1 max unavailable, 25% max surge
Pod Template:
  Labels:           k8s-app=kube-dns
  Service Account:  coredns
  Containers:
   coredns:
    Image:       rancher/mirrored-coredns-coredns:1.10.1
    Ports:       53/UDP, 53/TCP, 9153/TCP
    Host Ports:  0/UDP, 0/TCP, 0/TCP
    Args:
      -conf
      /etc/coredns/Corefile
    Limits:
      memory:  170Mi
    Requests:
      cpu:        100m
      memory:     70Mi
    Liveness:     http-get http://:8080/health delay=60s timeout=1s period=10s #success=1 #failure=3
    Readiness:    http-get http://:8181/ready delay=0s timeout=1s period=2s #success=1 #failure=3
    Environment:  <none>
    Mounts:
      /etc/coredns from config-volume (ro)
      /etc/coredns/custom from custom-config-volume (ro)
  Volumes:
   config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      coredns
    Optional:  false
   custom-config-volume:
    Type:                       ConfigMap (a volume populated by a ConfigMap)
    Name:                       coredns-custom
    Optional:                   true
  Topology Spread Constraints:  kubernetes.io/hostname:DoNotSchedule when max skew 1 is exceeded for selector k8s-app=kube-dns
  Priority Class Name:          system-cluster-critical
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      True    MinimumReplicasAvailable
  Progressing    True    NewReplicaSetAvailable
OldReplicaSets:  <none>
NewReplicaSet:   coredns-59b4f5bbd5 (1/1 replicas created)
Events:          <none>


Name:               emby
Namespace:          ix-emby
CreationTimestamp:  Tue, 20 Feb 2024 18:00:19 -0800
Labels:             app=emby-2.0.2
                    app.kubernetes.io/instance=emby
                    app.kubernetes.io/managed-by=Helm
                    app.kubernetes.io/name=emby
                    app.kubernetes.io/version=4.8.1.0
                    helm-revision=3
                    helm.sh/chart=emby-2.0.2
                    release=emby
Annotations:        deployment.kubernetes.io/revision: 2
                    meta.helm.sh/release-name: emby
                    meta.helm.sh/release-namespace: ix-emby
Selector:           app.kubernetes.io/instance=emby,app.kubernetes.io/name=emby,pod.name=emby
Replicas:           1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:       Recreate
MinReadySeconds:    0
Pod Template:
  Labels:           app=emby-2.0.2
                    app.kubernetes.io/instance=emby
                    app.kubernetes.io/managed-by=Helm
                    app.kubernetes.io/name=emby
                    app.kubernetes.io/version=4.8.1.0
                    helm-revision=3
                    helm.sh/chart=emby-2.0.2
                    pod.name=emby
                    release=emby
  Annotations:      rollme: QI0ua
  Service Account:  default
  Containers:
   emby:
    Image:       emby/embyserver:4.8.1.0
    Ports:       1900/UDP, 7359/UDP, 8096/TCP
    Host Ports:  1900/UDP, 7359/UDP, 8096/TCP
    Limits:
      cpu:             4
      memory:          8Gi
      nvidia.com/gpu:  1
    Requests:
      cpu:      10m
      memory:   50Mi
    Liveness:   http-get http://:8096/emby/System/Ping delay=10s timeout=5s period=10s #success=1 #failure=5
    Readiness:  http-get http://:8096/emby/System/Ping delay=10s timeout=5s period=10s #success=2 #failure=5
    Startup:    http-get http://:8096/emby/System/Ping delay=10s timeout=2s period=5s #success=1 #failure=60
    Environment:
      TZ:                          UTC
      UMASK:                       002
      UMASK_SET:                   002
      NVIDIA_DRIVER_CAPABILITIES:  all
      PUID:                        568
      USER_ID:                     568
      UID:                         568
      PGID:                        568
      GROUP_ID:                    568
      GID:                         568
    Mounts:
      /config from config (rw)
      /mnt/Test/test/movies from emby-0 (rw)
      /mnt/Test/test/tvshows from emby-1 (rw)
      /tmp from tmp (rw)
  Volumes:
   config:
    Type:          HostPath (bare host directory volume)
    Path:          /mnt/Test/emby
    HostPathType:  
   emby-0:
    Type:          HostPath (bare host directory volume)
    Path:          /mnt/Test/test/movies
    HostPathType:  
   emby-1:
    Type:          HostPath (bare host directory volume)
    Path:          /mnt/Test/test/tvshows
    HostPathType:  
   tmp:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Progressing    True    NewReplicaSetAvailable
  Available      True    MinimumReplicasAvailable
OldReplicaSets:  <none>
NewReplicaSet:   emby-8587ff676b (1/1 replicas created)
Events:          <none>


Name:                   snapshot-controller
Namespace:              kube-system
CreationTimestamp:      Tue, 20 Feb 2024 15:44:14 -0800
Labels:                 objectset.rio.cattle.io/hash=e20aeb27d825538dc5fa9f4d82c2fe2058f8374c
Annotations:            deployment.kubernetes.io/revision: 1
                        objectset.rio.cattle.io/applied:
                          H4sIAAAAAAAA/7RUzW7bOBB+lcWcJceW442XgA/BZk/bBkWM9BLkMKZGMmuKZDgjNYKhdy8oO60D5A8FehM5w+9nPlJ7wGC+UmTjHSjAEPism0EGO+NKUHBFwfq+ISeQQUOCJQqC2g...
                        objectset.rio.cattle.io/id: 
                        objectset.rio.cattle.io/owner-gvk: k3s.cattle.io/v1, Kind=Addon
                        objectset.rio.cattle.io/owner-name: nfs-csi
                        objectset.rio.cattle.io/owner-namespace: kube-system
Selector:               app=snapshot-controller
Replicas:               2 desired | 2 updated | 2 total | 2 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        15
RollingUpdateStrategy:  1 max unavailable, 0 max surge
Pod Template:
  Labels:           app=snapshot-controller
  Service Account:  snapshot-controller
  Containers:
   snapshot-controller:
    Image:      registry.k8s.io/sig-storage/snapshot-controller:v6.2.2
    Port:       <none>
    Host Port:  <none>
    Args:
      --v=2
      --leader-election=true
      --leader-election-namespace=kube-system
    Limits:
      memory:  300Mi
    Requests:
      cpu:              10m
      memory:           20Mi
    Environment:        <none>
    Mounts:             <none>
  Volumes:              <none>
  Priority Class Name:  system-cluster-critical
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Progressing    True    NewReplicaSetAvailable
  Available      True    MinimumReplicasAvailable
OldReplicaSets:  <none>
NewReplicaSet:   snapshot-controller-546868dfb4 (2/2 replicas created)
Events:          <none>


Name:               filebrowser
Namespace:          ix-filebrowser
CreationTimestamp:  Fri, 23 Feb 2024 20:12:37 -0800
Labels:             app=filebrowser-1.2.6
                    app.kubernetes.io/instance=filebrowser
                    app.kubernetes.io/managed-by=Helm
                    app.kubernetes.io/name=filebrowser
                    app.kubernetes.io/version=2.27.0
                    helm-revision=1
                    helm.sh/chart=filebrowser-1.2.6
                    release=filebrowser
Annotations:        deployment.kubernetes.io/revision: 1
                    meta.helm.sh/release-name: filebrowser
                    meta.helm.sh/release-namespace: ix-filebrowser
Selector:           app.kubernetes.io/instance=filebrowser,app.kubernetes.io/name=filebrowser,pod.name=filebrowser
Replicas:           1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:       Recreate
MinReadySeconds:    0
Pod Template:
  Labels:           app=filebrowser-1.2.6
                    app.kubernetes.io/instance=filebrowser
                    app.kubernetes.io/managed-by=Helm
                    app.kubernetes.io/name=filebrowser
                    app.kubernetes.io/version=2.27.0
                    helm-revision=1
                    helm.sh/chart=filebrowser-1.2.6
                    pod.name=filebrowser
                    release=filebrowser
  Annotations:      rollme: WiGZG
  Service Account:  default
  Init Containers:
   filebrowser-install-01-permissions:
    Image:      bash:4.4.23
    Port:       <none>
    Host Port:  <none>
    Command:
      bash
    Args:
      -c
      for dir in /mnt/directories/*; do
        if [ ! -d "$dir" ]; then
          echo "[$dir] is not a directory, skipping"
          continue
        fi
      
        echo "Current Ownership and Permissions on ["$dir"]:"
        echo "chown: $(stat -c "%u %g" "$dir")"
        echo "chmod: $(stat -c "%a" "$dir")" 
        if [ $(stat -c %u "$dir") -eq 568 ] && [ $(stat -c %g "$dir") -eq 568 ]; then
          echo "Ownership is correct. Skipping..."
          fix_owner="false"
        else
          echo "Ownership is incorrect. Fixing..."
          fix_owner="true"
        fi
      
      
        if [ "$fix_owner" = "true" ]; then
          echo "Changing ownership to 568:568 on: ["$dir"]"
          chown -R 568:568 "$dir"
          echo "Finished changing ownership"
          echo "Ownership after changes:"
          stat -c "%u %g" "$dir"
        fi
      done
      
    Limits:
      cpu:     1
      memory:  512Mi
    Requests:
      cpu:     10m
      memory:  50Mi
    Environment:
      TZ:                      UTC
      UMASK:                   002
      UMASK_SET:               002
      NVIDIA_VISIBLE_DEVICES:  void
      PUID:                    568
      USER_ID:                 568
      UID:                     568
      PGID:                    568
      GROUP_ID:                568
      GID:                     568
    Mounts:
      /mnt/directories/config from config (rw)
   filebrowser-init-02-init-config:
    Image:      filebrowser/filebrowser:v2.27.0
    Port:       <none>
    Host Port:  <none>
    Command:
      /bin/sh
      -c
      if [ ! -f /config/filebrowser.json ]; then
        echo "Creating an empty config file"
        echo '{}' > /config/filebrowser.json
      fi
    Limits:
      cpu:     4
      memory:  8Gi
    Requests:
      cpu:     10m
      memory:  50Mi
    Environment:
      TZ:                      UTC
      UMASK:                   002
      UMASK_SET:               002
      NVIDIA_VISIBLE_DEVICES:  void
      S6_READ_ONLY_ROOT:       1
    Mounts:
      /config from config (rw)
  Containers:
   filebrowser:
    Image:      filebrowser/filebrowser:v2.27.0
    Port:       30044/TCP
    Host Port:  0/TCP
    Args:
      --config
      /config/filebrowser.json
      --database
      /config/filebrowser.db
      --port
      30044
      --address
      0.0.0.0
      --root
      /data
    Limits:
      cpu:     4
      memory:  8Gi
    Requests:
      cpu:      10m
      memory:   50Mi
    Liveness:   http-get http://:30044/health delay=10s timeout=5s period=10s #success=1 #failure=5
    Readiness:  http-get http://:30044/health delay=10s timeout=5s period=10s #success=2 #failure=5
    Startup:    http-get http://:30044/health delay=10s timeout=2s period=5s #success=1 #failure=60
    Environment:
      TZ:                      UTC
      UMASK:                   002
      UMASK_SET:               002
      NVIDIA_VISIBLE_DEVICES:  void
      S6_READ_ONLY_ROOT:       1
    Mounts:
      /config from config (rw)
      /data/my_data from filebrowser-0 (rw)
  Volumes:
   config:
    Type:          HostPath (bare host directory volume)
    Path:          /mnt/Test/ix-applications/releases/filebrowser/volumes/ix_volumes/config
    HostPathType:  
   filebrowser-0:
    Type:          HostPath (bare host directory volume)
    Path:          /mnt
    HostPathType:  
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      True    MinimumReplicasAvailable
  Progressing    True    NewReplicaSetAvailable
OldReplicaSets:  <none>
NewReplicaSet:   filebrowser-6f4c6cf4cf (1/1 replicas created)
Events:          <none>
