Compare commits
4 Commits
f31221caf0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
741ac73e35 | ||
|
|
bb5390928e | ||
|
|
e9be4808ed | ||
|
|
3b6312b596 |
@@ -17,16 +17,17 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: api-container
|
- name: api-container
|
||||||
image: 4grxfq/api
|
image: 4grxfq/api
|
||||||
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5001
|
- containerPort: 5001
|
||||||
name: api-port
|
name: api-port
|
||||||
env:
|
env:
|
||||||
- name: OPENID_SECRET
|
- name: OPENID_SECRET
|
||||||
value: CHANGEME
|
value:
|
||||||
- name: DNS_SERVER
|
- name: DNS_SERVER
|
||||||
value: "IP"
|
value: dnsns.mashallah.nl
|
||||||
- name: MONGO_CONNECTIONSTRING
|
- name: MONGO_CONNECTIONSTRING
|
||||||
value: CHANGEME
|
value:
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -36,7 +37,27 @@ metadata:
|
|||||||
run: api-service
|
run: api-service
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 5001
|
- port: 80
|
||||||
|
targetPort: 5001
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
selector:
|
||||||
app: api-deployment
|
app: api-deployment
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: api-ingress
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: addon-http-application-routing
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: dnsapi.mashallah.nl
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: api-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
@@ -17,16 +17,17 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: gui-container
|
- name: gui-container
|
||||||
image: 4grxfq/gui
|
image: 4grxfq/gui
|
||||||
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
name: gui-port
|
name: gui-port
|
||||||
env:
|
env:
|
||||||
- name: OPENID_SECRET
|
- name: OPENID_SECRET
|
||||||
value: CHANGEME
|
value:
|
||||||
- name: DNS_API
|
- name: DNS_API
|
||||||
value: "http://api:5001"
|
value: http://api-service:80
|
||||||
- name: MONGO_CONNECTIONSTRING
|
- name: MONGO_CONNECTIONSTRING
|
||||||
value: CHANGEME
|
value:
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -36,7 +37,27 @@ metadata:
|
|||||||
run: gui-service
|
run: gui-service
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 5000
|
- port: 80
|
||||||
|
targetPort: 5000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
selector:
|
||||||
app: gui-deployment
|
app: gui-deployment
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: gui-ingress
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: addon-http-application-routing
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: dnsgui.mashallah.nl
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: gui-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
@@ -6,5 +6,6 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
|
|||||||
COPY openid.py /app/
|
COPY openid.py /app/
|
||||||
COPY dnszone.py /app/
|
COPY dnszone.py /app/
|
||||||
COPY openid.py /app/
|
COPY openid.py /app/
|
||||||
|
COPY mango.py /app
|
||||||
COPY api.py /app/
|
COPY api.py /app/
|
||||||
CMD ["python3", "/app/api.py"]
|
CMD ["python3", "/app/api.py"]
|
||||||
@@ -14,7 +14,7 @@ class GoogleOID:
|
|||||||
|
|
||||||
self.settings = {'client_id': '954325872153-1v466clrtgg6h4ptt2ne5pgpb9mhilr5.apps.googleusercontent.com',
|
self.settings = {'client_id': '954325872153-1v466clrtgg6h4ptt2ne5pgpb9mhilr5.apps.googleusercontent.com',
|
||||||
'client_secret': client_secret,
|
'client_secret': client_secret,
|
||||||
'callback_uri': 'http://dnsdash.mashallah.nl:5000/login/gcp/callback',
|
'callback_uri': 'https://dnsgui.mashallah.nl/login/gcp/callback',
|
||||||
'key_server': 'https://www.googleapis.com/oauth2/v3/certs'} # global oid settings
|
'key_server': 'https://www.googleapis.com/oauth2/v3/certs'} # global oid settings
|
||||||
|
|
||||||
def settings(self): # make it so that the settings variable is callable
|
def settings(self): # make it so that the settings variable is callable
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class GoogleOID:
|
|||||||
|
|
||||||
self.settings = {'client_id': '954325872153-1v466clrtgg6h4ptt2ne5pgpb9mhilr5.apps.googleusercontent.com',
|
self.settings = {'client_id': '954325872153-1v466clrtgg6h4ptt2ne5pgpb9mhilr5.apps.googleusercontent.com',
|
||||||
'client_secret': client_secret,
|
'client_secret': client_secret,
|
||||||
'callback_uri': 'http://dnsdash.mashallah.nl:5000/login/gcp/callback',
|
'callback_uri': 'https://dnsgui.mashallah.nl/login/gcp/callback',
|
||||||
'key_server': 'https://www.googleapis.com/oauth2/v3/certs'} # global oid settings
|
'key_server': 'https://www.googleapis.com/oauth2/v3/certs'} # global oid settings
|
||||||
|
|
||||||
def settings(self): # make it so that the settings variable is callable
|
def settings(self): # make it so that the settings variable is callable
|
||||||
|
|||||||
Reference in New Issue
Block a user