Commit 5966af06 authored by Nicolas PARQUET's avatar Nicolas PARQUET 🚀

Add NPA out content

parents
# NPA ----> out
## Run locally with Docker
```
docker run -p 1948:1948 --rm nautikos1235/npa-out:1.1.0
```
Then go to http://localhost:1948/slides.md#/
## Deploy in Kubernetes
```
kubectl create namespace npa-out
kubectl create -f kube-deploy-npa-out.yml
```
Get your public IP / hostname:
```
kubectl -n npa-out get svc
```
## Online demo
Please visit: http://6d6rs76cn8.lb.c1.gra.k8s.ovh.net/slides.md#/
## Invite more people
```
kubectl -n npa-out scale deployment/npa-out --replicas=130
```
## Upgrade
Locally:
```
docker run -p 1948:1948 --rm nautikos1235/npa-out:2.0.0
```
In Kubernetes:
```
kubectl -n npa-out set image deployment/npa-out npa-out=nautikos1235/npa-out:2.0.0
```
## Cleanup
```
kubectl delete -f kube-deploy-npa-out.yml
```
\ No newline at end of file
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: npa-out
namespace: npa-out
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: npa-out
spec:
containers:
- name: npa-out
image: nautikos1235/npa-out:1.1.0
resources:
limits:
cpu: "200m"
memory: "500Mi"
requests:
cpu: "100m"
memory: "300Mi"
ports:
- containerPort: 1948
readinessProbe:
httpGet:
path: /
port: 1948
initialDelaySeconds: 5
periodSeconds: 3
livenessProbe:
httpGet:
path: /
port: 1948
initialDelaySeconds: 15
periodSeconds: 30
---
kind: Service
apiVersion: v1
metadata:
name: npa-out
namespace: npa-out
spec:
selector:
app: npa-out
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 1948
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment