diff --git a/infrastructure/system-upgrades/kustomization.yaml b/infrastructure/system-upgrades/kustomization.yaml index c730f6c4862ddc83639a0b816ec494869aeaca09..0c1ba4a7facea1ca86220dad74fcc9f9409933a5 100644 --- a/infrastructure/system-upgrades/kustomization.yaml +++ b/infrastructure/system-upgrades/kustomization.yaml @@ -9,7 +9,6 @@ resources: - kubelet.yaml - longhorn-lvm.yaml - longhorn-setup.yaml - - logrotate.yaml - fedora-temperature-management.yaml - fedora-system-upgrade.yaml - ../../shared/networkpolicies/allow-from-same-namespace.yaml \ No newline at end of file diff --git a/infrastructure/system-upgrades/logrotate.yaml b/infrastructure/system-upgrades/logrotate.yaml deleted file mode 100644 index 538296c5817de5cb08e1e93fc0cbb3cdb6bd46f9..0000000000000000000000000000000000000000 --- a/infrastructure/system-upgrades/logrotate.yaml +++ /dev/null @@ -1,58 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: logrotate-setup - namespace: system-upgrade -type: Opaque -stringData: - logrotate.conf: | - /var/log/cron - /var/log/maillog - /var/log/messages - /var/log/secure - /var/log/spooler - { - maxsize 250M - missingok - sharedscripts - postrotate - /usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true - endscript - } - - upgrade.sh: | - #!/bin/sh - set -e - set -x - secrets="$(dirname $0)" - cp $secrets/logrotate.conf /etc/logrotate.d/rsyslog - rm /etc/logrotate.d/kubernetes-survival ---- -apiVersion: upgrade.cattle.io/v1 -kind: Plan -metadata: - name: logrotate-setup - namespace: system-upgrade -spec: - concurrency: 1 - nodeSelector: - matchExpressions: - - key: feature.node.kubernetes.io/system-os_release.ID - operator: In - values: - - "fedora" - - key: feature.node.kubernetes.io/system-os_release.VERSION_ID.major - operator: In - values: - - "38" - - "39" - serviceAccountName: system-upgrade-executer - secrets: - - name: logrotate-setup - path: /host/run/system-upgrade/secrets/logrotate-setup - version: "1.0.0" - upgrade: - image: quay.io/fedora/fedora:39 - command: ["chroot", "/host"] - args: ["sh", "/run/system-upgrade/secrets/logrotate-setup/upgrade.sh"]