fix doc and default env vars

This commit is contained in:
luckysideburn
2024-12-31 10:24:10 +00:00
parent 2a4318528b
commit 41574aa8ad
3 changed files with 12 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ RUN chmod 777 /usr/local/openresty/nginx
RUN apt-get -y install luarocks lua-json lua-socket libyaml-dev
RUN apt-get update --fix-missing
RUN for pkg in luasec lunajson lua-resty-http lyaml; do luarocks install $pkg; done
RUN for pkg in luasec lunajson lua-resty-http lyaml lua-resty-openssl; do luarocks install $pkg; done
# Install kube-linter
RUN curl -L -O https://github.com/stackrox/kube-linter/releases/download/0.6.0/kube-linter-linux.tar.gz

View File

@@ -148,8 +148,8 @@ Run the container:
```bash
podman run -p 3131:8080 \
--env K8S_TOKEN=$TOKEN \
--env ENDPOINT=localhost:3131 \
--env INSECURE_ENDPOINT=true \
--env APPLICATION_URL=localhost:3131 \
--env DISABLE_TLS=true \
--env KUBERNETES_SERVICE_HOST=<k8s_controlplane_host> \
--env KUBERNETES_SERVICE_PORT_HTTPS=<k8s_controlplane_port> \
--env NAMESPACE=namespace1,namespace2 \
@@ -159,7 +159,7 @@ luckysideburn/kubeinvaders:latest
Given this example, you can access k-inv at the following address: [http://localhost:3131](http://localhost:3131)
- Please pay attention to the command "podman run -p 3131:8080". Forwarding port 8080 is important.
- We suggest using `INSECURE_ENDPOINT=true` for local development environments.
- We suggest using `DISABLE_TLS=true` for local development environments.
- Follow the instructions above to create the token for `K8S_TOKEN`.
- In the example, we use image tag `latest`, use `latest_debug` for debugging.
@@ -179,13 +179,13 @@ These are the permissions your service account must have. You can take an exampl
resources: ["*"]
verbs: ["get", "watch", "list"]
##### ENDPOINT
##### APPLICATION_URL
Host and port of the web console.
URL of the web console
##### INSECURE_ENDPOINT
##### DISABLE_TLS
Select HTTP or HTTPS for the web console.
Disable HTTPS for the web console
##### KUBERNETES_SERVICE_HOST
@@ -202,8 +202,8 @@ List the namespaces you want to stress or on which you want to see logs (logs ar
```bash
docker run -p 8080:8080 \
--env K8S_TOKEN=<k8s_service_account_token> \
--env ENDPOINT=localhost:8080 \
--env INSECURE_ENDPOINT=true \
--env APPLICATION_URL=http://localhost:8080 \
--env DISABLE_TLS=true \
--env KUBERNETES_SERVICE_HOST=<k8s_controlplane_host> \
--env KUBERNETES_SERVICE_PORT_HTTPS=<k8s_controlplane_port> \
--env NAMESPACE=<comma_separated_namespaces_to_stress> \
@@ -289,7 +289,7 @@ helm install kubeinvaders --set-string config.target_namespace="namespace1\,name
```bash
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
kubectl set env deployment/kubeinvaders INSECURE_ENDPOINT=true -n kubeinvaders
kubectl set env deployment/kubeinvaders DISABLE_TLS=true -n kubeinvaders
```
### SCC for Openshift

View File

@@ -762,7 +762,7 @@ k8s_jobs:
<div class="container text-center" style="margin-top: 20%;">
<div>
<img style="scale: 60%" src="images/kubeinvaders_spaceship2.png" id="spaceShip">
<p class="text-muted credit" style="color:#fff;">version: 2024-12-31 10:04:33</p>
<p class="text-muted credit" style="color:#fff;">version: 2024-12-31 10:23:21</p>
</div>
</div>
</div>