faster snapshots

This commit is contained in:
2021-03-19 21:20:27 +01:00
parent b18dea273f
commit 173c2a9d01
5 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
FROM debian:stable-slim FROM debian:stable-slim
#RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
curl procps && \ curl procps && \
apt-get clean -y && \ apt-get clean -y && \

View File

@@ -113,6 +113,7 @@ metadata:
name: gitea name: gitea
annotations: annotations:
ingress.kubernetes.io/whitelist-x-forwarded-for: "true" ingress.kubernetes.io/whitelist-x-forwarded-for: "true"
nginx.ingress.kubernetes.io/proxy-body-size: 512m
spec: spec:
rules: rules:
- host: git-ui.lan - host: git-ui.lan

View File

@@ -60,6 +60,7 @@ spec:
- --dockerfile=$(params.pathToDockerFile) - --dockerfile=$(params.pathToDockerFile)
- --destination=$(resources.outputs.builtImage.url) - --destination=$(resources.outputs.builtImage.url)
- --context=$(params.pathToContext) - --context=$(params.pathToContext)
- --snapshotMode=redo
- --skip-tls-verify - --skip-tls-verify
workspaces: workspaces:
- name: usr-src - name: usr-src

View File

@@ -50,6 +50,7 @@ spec:
- --dockerfile=$(params.pathToDockerFile) - --dockerfile=$(params.pathToDockerFile)
- --destination=$(resources.outputs.builtImage.url) - --destination=$(resources.outputs.builtImage.url)
- --context=$(params.pathToContext) - --context=$(params.pathToContext)
- --snapshotMode=redo
- --skip-tls-verify - --skip-tls-verify
--- ---
apiVersion: tekton.dev/v1beta1 apiVersion: tekton.dev/v1beta1

View File

@@ -15,7 +15,7 @@ spec:
app: grav app: grav
spec: spec:
containers: containers:
- image: docker-registry.lan/grav:arm64 - image: cr.lan/grav:arm64
name: grav name: grav
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
@@ -81,6 +81,8 @@ apiVersion: networking.k8s.io/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: grav name: grav
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 512m
spec: spec:
rules: rules:
- host: grav.lan - host: grav.lan
@@ -95,7 +97,7 @@ kind: PersistentVolumeClaim
metadata: metadata:
name: grav-pages name: grav-pages
spec: spec:
storageClassName: nfs-ssd storageClassName: nfs-ssd-ebin01
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources: