Skip to content

Commit

Permalink
Added installation manifests and readme for litmus 3.0.0-beta9 (#4081)
Browse files Browse the repository at this point in the history
* Added installation manifests and readme for litmu3.0.0

Signed-off-by: Saranya-jena <[email protected]>

* Removed unecessary code

Signed-off-by: Saranya-jena <[email protected]>

* Updated Readme.md

* Update Readme.md

* Updated litmus-3.0.0-beta9.yaml

* Update litmus-3.0.0-beta9.yaml

* Updated nginx conf in manifest

Signed-off-by: Saranya-jena <[email protected]>

* updated frontend ports

Signed-off-by: Saranya-jena <[email protected]>

* updated frontend ports

Signed-off-by: Saranya-jena <[email protected]>

* updated ports

Signed-off-by: Saranya-jena <[email protected]>

---------

Signed-off-by: Saranya-jena <[email protected]>
  • Loading branch information
Saranya-jena committed Jul 12, 2023
1 parent ec6a4e3 commit 30b703c
Show file tree
Hide file tree
Showing 8 changed files with 5,911 additions and 4 deletions.
39 changes: 39 additions & 0 deletions chaoscenter/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## Installation steps for Litmus 3.0.0-beta9

### Mongo installation via Helm - Bitnami Mongo

```shell
helm repo add bitnami https://charts.bitnami.com/bitnami
```

#### Mongo Values

```shell
auth:
enabled: true
rootPassword: "1234"
# -- existingSecret Existing secret with MongoDB(&reg;) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, ` mongodb-replica-set-key`)
existingSecret: ""
architecture: replicaset
replicaCount: 3
persistence:
enabled: true
volumePermissions:
enabled: true
metrics:
enabled: false
prometheusRule:
enabled: false
```

```shell
helm install my-release bitnami/mongodb --values mongo-values.yml -n <NAMESPACE> --create-namespace
```

### Apply the Manifest

Applying the manifest file will install all the required service account configuration and ChaosCenter.

```shell
kubectl apply -f https://litmuschaos.github.io/litmus/3.0.0-beta9/litmus-3.0.0-beta9.yaml
```
2 changes: 1 addition & 1 deletion chaoscenter/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ RUN chown 65534:65534 -R /etc/nginx

USER 65534

EXPOSE 8184
EXPOSE 8185

ENTRYPOINT ["sh", "/opt/entrypoint.sh"]
31 changes: 28 additions & 3 deletions chaoscenter/web/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ events {
}

http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp_path;
fastcgi_temp_path /tmp/fastcgi_temp;
Expand All @@ -27,7 +32,7 @@ http {
error_log /var/log/nginx/error.log;

server {
listen 8184 default_server;
listen 8185 default_server;
root /opt/chaos;

location /health {
Expand All @@ -47,13 +52,33 @@ http {
root /usr/share/nginx/html;
}

location /manager/api/ {
location /auth/ {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass "http://litmusportal-auth-server-service:9003/";
}

location /api/ {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass "http://litmusportal-server-service:9002/";
}

location /ws/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass "http://chaos-manager-service:8080/";
proxy_pass "http://litmusportal-server-service:9002/";
}
}
}
Loading

0 comments on commit 30b703c

Please sign in to comment.