remove init containers

This commit is contained in:
2025-02-23 12:38:05 -06:00
parent f2a9047c21
commit 54860ce1ed

View File

@@ -5,55 +5,55 @@ freshrss:
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
initContainers:
init-download-extension-1:
securityContext:
runAsUser: 0
image:
repository: alpine
tag: 3.21.3
pullPolicy: IfNotPresent
command:
- /bin/sh
- -ec
- |
apk add --no-cache git;
cd /tmp;
git clone -n --depth=1 --filter=tree:0 https://github.com/cn-tools/cntools_FreshRssExtensions.git;
cd cntools_FreshRssExtensions;
git sparse-checkout set --no-cone /xExtension-YouTubeChannel2RssFeed;
git checkout;
rm -rf /var/www/FreshRSS/extensions/xExtension-YouTubeChannel2RssFeed
cp -r xExtension-YouTubeChannel2RssFeed /var/www/FreshRSS/extensions
chown -R 568:568 /var/www/FreshRSS/extensions/xExtension-YouTubeChannel2RssFeed
resources:
requests:
cpu: 100m
memory: 128Mi
init-download-extension-2:
securityContext:
runAsUser: 0
image:
repository: alpine
tag: 3.21.3
pullPolicy: IfNotPresent
command:
- /bin/sh
- -ec
- |
apk add --no-cache git;
cd /tmp;
git clone -n --depth=1 --filter=tree:0 https://github.com/FreshRSS/Extensions.git;
cd cntools_FreshRssExtensions;
git sparse-checkout set --no-cone /xExtension-ImageProxy;
git checkout;
rm -rf /var/www/FreshRSS/extensions/xExtension-ImageProxy
cp -r xExtension-ImageProxy /var/www/FreshRSS/extensions
chown -R 568:568 /var/www/FreshRSS/extensions/xExtension-YouTubeChannel2RssFeed
resources:
requests:
cpu: 100m
memory: 128Mi
# initContainers:
# init-download-extension-1:
# securityContext:
# runAsUser: 0
# image:
# repository: alpine
# tag: 3.21.3
# pullPolicy: IfNotPresent
# command:
# - /bin/sh
# - -ec
# - |
# apk add --no-cache git;
# cd /tmp;
# git clone -n --depth=1 --filter=tree:0 https://github.com/cn-tools/cntools_FreshRssExtensions.git;
# cd cntools_FreshRssExtensions;
# git sparse-checkout set --no-cone /xExtension-YouTubeChannel2RssFeed;
# git checkout;
# rm -rf /var/www/FreshRSS/extensions/xExtension-YouTubeChannel2RssFeed
# cp -r xExtension-YouTubeChannel2RssFeed /var/www/FreshRSS/extensions
# chown -R 568:568 /var/www/FreshRSS/extensions/xExtension-YouTubeChannel2RssFeed
# resources:
# requests:
# cpu: 100m
# memory: 128Mi
# init-download-extension-2:
# securityContext:
# runAsUser: 0
# image:
# repository: alpine
# tag: 3.21.3
# pullPolicy: IfNotPresent
# command:
# - /bin/sh
# - -ec
# - |
# apk add --no-cache git;
# cd /tmp;
# git clone -n --depth=1 --filter=tree:0 https://github.com/FreshRSS/Extensions.git;
# cd cntools_FreshRssExtensions;
# git sparse-checkout set --no-cone /xExtension-ImageProxy;
# git checkout;
# rm -rf /var/www/FreshRSS/extensions/xExtension-ImageProxy
# cp -r xExtension-ImageProxy /var/www/FreshRSS/extensions
# chown -R 568:568 /var/www/FreshRSS/extensions/xExtension-YouTubeChannel2RssFeed
# resources:
# requests:
# cpu: 100m
# memory: 128Mi
containers:
main:
image: