Skip to content

Commit 41574aa

Browse files
fix doc and default env vars
1 parent 2a43185 commit 41574aa

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN chmod 777 /usr/local/openresty/nginx
2020
RUN apt-get -y install luarocks lua-json lua-socket libyaml-dev
2121
RUN apt-get update --fix-missing
2222

23-
RUN for pkg in luasec lunajson lua-resty-http lyaml; do luarocks install $pkg; done
23+
RUN for pkg in luasec lunajson lua-resty-http lyaml lua-resty-openssl; do luarocks install $pkg; done
2424

2525
# Install kube-linter
2626
RUN curl -L -O https://github.com/stackrox/kube-linter/releases/download/0.6.0/kube-linter-linux.tar.gz

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ Run the container:
148148
```bash
149149
podman run -p 3131:8080 \
150150
--env K8S_TOKEN=$TOKEN \
151-
--env ENDPOINT=localhost:3131 \
152-
--env INSECURE_ENDPOINT=true \
151+
--env APPLICATION_URL=localhost:3131 \
152+
--env DISABLE_TLS=true \
153153
--env KUBERNETES_SERVICE_HOST=<k8s_controlplane_host> \
154154
--env KUBERNETES_SERVICE_PORT_HTTPS=<k8s_controlplane_port> \
155155
--env NAMESPACE=namespace1,namespace2 \
@@ -159,7 +159,7 @@ luckysideburn/kubeinvaders:latest
159159
Given this example, you can access k-inv at the following address: [http://localhost:3131](http://localhost:3131)
160160

161161
- Please pay attention to the command "podman run -p 3131:8080". Forwarding port 8080 is important.
162-
- We suggest using `INSECURE_ENDPOINT=true` for local development environments.
162+
- We suggest using `DISABLE_TLS=true` for local development environments.
163163
- Follow the instructions above to create the token for `K8S_TOKEN`.
164164
- In the example, we use image tag `latest`, use `latest_debug` for debugging.
165165

@@ -179,13 +179,13 @@ These are the permissions your service account must have. You can take an exampl
179179
resources: ["*"]
180180
verbs: ["get", "watch", "list"]
181181

182-
##### ENDPOINT
182+
##### APPLICATION_URL
183183

184-
Host and port of the web console.
184+
URL of the web console
185185

186-
##### INSECURE_ENDPOINT
186+
##### DISABLE_TLS
187187

188-
Select HTTP or HTTPS for the web console.
188+
Disable HTTPS for the web console
189189

190190
##### KUBERNETES_SERVICE_HOST
191191

@@ -202,8 +202,8 @@ List the namespaces you want to stress or on which you want to see logs (logs ar
202202
```bash
203203
docker run -p 8080:8080 \
204204
--env K8S_TOKEN=<k8s_service_account_token> \
205-
--env ENDPOINT=localhost:8080 \
206-
--env INSECURE_ENDPOINT=true \
205+
--env APPLICATION_URL=http://localhost:8080 \
206+
--env DISABLE_TLS=true \
207207
--env KUBERNETES_SERVICE_HOST=<k8s_controlplane_host> \
208208
--env KUBERNETES_SERVICE_PORT_HTTPS=<k8s_controlplane_port> \
209209
--env NAMESPACE=<comma_separated_namespaces_to_stress> \
@@ -289,7 +289,7 @@ helm install kubeinvaders --set-string config.target_namespace="namespace1\,name
289289
```bash
290290
helm install kubeinvaders --set-string config.target_namespace="namespace1\,namespace2" -n kubeinvaders kubeinvaders/kubeinvaders --set ingress.enabled=true --set ingress.hostName=kubeinvaders.local --set deployment.image.tag=latest --set service.type=LoadBalancer --set service.port=80
291291

292-
kubectl set env deployment/kubeinvaders INSECURE_ENDPOINT=true -n kubeinvaders
292+
kubectl set env deployment/kubeinvaders DISABLE_TLS=true -n kubeinvaders
293293
```
294294

295295
### SCC for Openshift

html/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ <h2></h2>
762762
<div class="container text-center" style="margin-top: 20%;">
763763
<div>
764764
<img style="scale: 60%" src="images/kubeinvaders_spaceship2.png" id="spaceShip">
765-
<p class="text-muted credit" style="color:#fff;">version: 2024-12-31 10:04:33</p>
765+
<p class="text-muted credit" style="color:#fff;">version: 2024-12-31 10:23:21</p>
766766
</div>
767767
</div>
768768
</div>

0 commit comments

Comments
 (0)