Skip to content

Commit 05470e0

Browse files
committed
squash
1 parent 8481e4b commit 05470e0

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: cert-manager-preflights
5+
labels:
6+
troubleshoot.sh/kind: preflight
7+
type: Opaque
8+
stringData:
9+
preflight.yaml: |
10+
apiVersion: troubleshoot.sh/v1beta2
11+
kind: Preflight
12+
metadata:
13+
name: cert-manager-preflights
14+
spec:
15+
analyzers:
16+
# https://github.com/cert-manager/cert-manager/blob/master/deploy/charts/cert-manager/README.template.md#prerequisites
17+
- clusterVersion:
18+
outcomes:
19+
- fail:
20+
when: "< 1.22.0"
21+
message: The application requires at least Kubernetes 1.22.0, and recommends 1.25.0.
22+
uri: https://kubernetes.io
23+
- warn:
24+
when: "< 1.25.0"
25+
message: Your cluster meets the minimum version of Kubernetes, but we recommend you update to 1.25.0 or later.
26+
uri: https://kubernetes.io
27+
- pass:
28+
message: Your cluster meets the recommended and required versions of Kubernetes.

applications/wg-easy/container/Containerfile

+13-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,19 @@ RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | b
6363
| cut -d : -f 2,3 \
6464
| tr -d \") -o replicated.tar.gz \
6565
&& tar xf replicated.tar.gz replicated && rm replicated.tar.gz \
66-
&& mv replicated /usr/local/bin/replicated
66+
&& mv replicated /usr/local/bin/replicated \
67+
68+
# Install Preflight CLI
69+
&& curl -Ls https://github.com/replicatedhq/troubleshoot/releases/latest/download/preflight_linux_amd64.tar.gz -o preflight.tar.gz \
70+
&& tar xf preflight.tar.gz preflight && rm preflight.tar.gz \
71+
&& mv preflight /usr/local/bin/preflight \
72+
73+
# Install yq
74+
&& BINARY=yq_linux_amd64 \
75+
&& VERSION=v4.45.1 \
76+
&& curl -Ls https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O \
77+
&& tar xf ${BINARY}.tar.gz && rm ${BINARY}.tar.gz \
78+
&& mv ${BINARY} /usr/local/bin/yq
6779

6880
# Create a non-root user for better security
6981
RUN groupadd -r devuser && useradd -r -g devuser -m -s /bin/bash devuser
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: wg-easy-preflights
5+
labels:
6+
troubleshoot.sh/kind: preflight
7+
type: Opaque
8+
stringData:
9+
preflight.yaml: |
10+
apiVersion: troubleshoot.sh/v1beta2
11+
kind: Preflight
12+
metadata:
13+
name: wg-easy-preflights
14+
spec:
15+
collectors:
16+
- sysctl:
17+
image: debian:buster-slim
18+
analyzers:
19+
- sysctl:
20+
checkName: IP forwarding enabled
21+
outcomes:
22+
- fail:
23+
when: 'net.ipv4.ip_forward == 0'
24+
message: "IP forwarding must be enabled. To enable it, edit /etc/sysctl.conf, add or uncomment the line 'net.ipv4.ip_forward=1', and run 'sudo sysctl -p'."
25+
- pass:
26+
when: 'net.ipv4.ip_forward == 1'
27+
message: "IP forwarding is enabled."

0 commit comments

Comments
 (0)