Move to k8s
This commit is contained in:
parent
b6beeb3782
commit
edfd5d142c
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM xena/alpine
|
||||
RUN apk --no-cache add quickserv
|
||||
ENV PORT 3000
|
||||
CMD quickserv -port $PORT -dir /book
|
||||
COPY ./book /book
|
||||
WORKDIR /book
|
14
k8s/k8s.sh
Executable file
14
k8s/k8s.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
dyson manifest \
|
||||
--name=tulpanomicon \
|
||||
--domain=tulpanomicon.guide \
|
||||
--dockerImage=xena/tulpanomicon:091220191 \
|
||||
--containerPort=3000 \
|
||||
--replicas=1 \
|
||||
--useProdLE=true > manifest.yml
|
||||
|
||||
kubens apps
|
||||
kubectl apply -f manifest.yml
|
||||
kubectl apply -f tor.yml
|
||||
rm manifest.yml
|
14
k8s/tor.yml
Normal file
14
k8s/tor.yml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: tor.k8s.io/v1alpha1
|
||||
kind: OnionService
|
||||
metadata:
|
||||
name: tulpanomicon
|
||||
spec:
|
||||
version: 2
|
||||
selector:
|
||||
app: tulpanomicon
|
||||
ports:
|
||||
- targetPort: 3000
|
||||
publicPort: 80
|
||||
privateKeySecret:
|
||||
name: tulpanomicon-tor-key
|
||||
key: private_key
|
Loading…
x
Reference in New Issue
Block a user