sepolia deployment
This commit is contained in:
103
deploy/liquidity-party.k8s.yaml
Normal file
103
deploy/liquidity-party.k8s.yaml
Normal file
@@ -0,0 +1,103 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: liquidity-party
|
||||
labels:
|
||||
app: liquidity-party
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: liquidity-party
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: liquidity-party
|
||||
annotations:
|
||||
prometheus.io/scrape: "false"
|
||||
spec:
|
||||
containers:
|
||||
- name: liquidity-party
|
||||
image: dexorder/liquidity-party
|
||||
ports:
|
||||
- name: www
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 100M
|
||||
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: liquidity-party
|
||||
labels:
|
||||
app: liquidity-party
|
||||
spec:
|
||||
selector:
|
||||
app: liquidity-party
|
||||
ports:
|
||||
- name: liquidity-party
|
||||
port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: liquidity-party
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true" # Redirects HTTP to HTTPS
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- secretName: liquidity-party-tls
|
||||
hosts:
|
||||
- liquidity.party
|
||||
rules:
|
||||
- host: liquidity.party
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: liquidity-party
|
||||
port:
|
||||
number: 80
|
||||
|
||||
|
||||
# www redirects to apex domain
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: www-liquidity-party
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true" # Redirects HTTP to HTTPS
|
||||
nginx.ingress.kubernetes.io/permanent-redirect: "https://liquidity.party/"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- secretName: www-liquidity-party-tls
|
||||
hosts:
|
||||
- www.liquidity.party
|
||||
rules:
|
||||
- host: www.liquidity.party
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: liquidity-party
|
||||
port:
|
||||
number: 80
|
||||
Reference in New Issue
Block a user