Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jul 5, 2024
1 parent 54dc1be commit 29d6065
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 26 deletions.
1 change: 1 addition & 0 deletions k8s/certificates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: zetina-delegator-cert
namespace: zetina
spec:
secretName: zetina-delegator-tls

Expand Down
69 changes: 69 additions & 0 deletions k8s/delegator-dashboard-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

apiVersion: apps/v1
kind: Deployment
metadata:
name: delegator-dashboard
namespace: zetina
spec:
selector:
matchLabels:
app: delegator-dashboard
replicas: 1
template:
metadata:
labels:
app: delegator-dashboard
spec:
containers:
- name: delegator-dashboard
image: registry.internal.iosis.tech/zetina-delegator-dashboard
resources:
requests:
cpu: "1"
memory: "1Gi"
limits:
cpu: "10"
memory: "10Gi"
env:
- name: NEXT_PUBLIC_API_URL
value: "http://delegator-service.zetina.svc.cluster.local:3010"
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: delegator-dashboard-service
namespace: zetina
spec:
selector:
app: delegator-dashboard
ports:
- protocol: TCP
port: 80
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: delegator-dashboard-ingress
namespace: zetina
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 0
spec:
ingressClassName: nginx-ingress-prod
tls:
- hosts:
- delegator-dashboard.zetina.iosis.tech
secretName: zetina-delegator-dashboard-tls
rules:
- host: delegator-dashboard.zetina.iosis.tech
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: delegator-dashboard-service
port:
number: 80
28 changes: 3 additions & 25 deletions k8s/delegator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: delegator
namespace: zetina
spec:
selector:
matchLabels:
Expand Down Expand Up @@ -33,34 +34,11 @@ apiVersion: v1
kind: Service
metadata:
name: delegator-service
namespace: zetina
spec:
selector:
app: delegator
ports:
- protocol: TCP
port: 80
port: 3010
targetPort: 3010
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: delegator-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 0
spec:
ingressClassName: nginx-ingress-prod
tls:
- hosts:
- delegator.zetina.iosis.tech
secretName: zetina-delegator-tls
rules:
- host: delegator.zetina.iosis.tech
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: delegator-service
port:
number: 80
4 changes: 3 additions & 1 deletion k8s/executor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: executor
namespace: zetina
spec:
selector:
matchLabels:
Expand Down Expand Up @@ -32,10 +33,11 @@ apiVersion: v1
kind: Service
metadata:
name: executor-service
namespace: zetina
spec:
selector:
app: executor
ports:
- protocol: TCP
port: 80
port: 3010
targetPort: 3010
1 change: 1 addition & 0 deletions k8s/issuer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-http01
namespace: zetina
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
Expand Down

0 comments on commit 29d6065

Please sign in to comment.