2022-07-24 02:15:37 +00:00
|
|
|
apiVersion: apps/v1
|
2019-11-19 05:51:48 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: ascii-live
|
|
|
|
namespace: ascii-live
|
|
|
|
spec:
|
2022-07-24 02:15:37 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: ascii-live
|
2019-11-19 05:51:48 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: ascii-live
|
|
|
|
spec:
|
|
|
|
containers:
|
2023-03-16 06:52:28 +00:00
|
|
|
- image: hugomd/ascii-live:407342dc
|
2019-11-19 05:51:48 +00:00
|
|
|
name: ascii-live
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: ascii-live
|
|
|
|
namespace: ascii-live
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: ascii-live
|
|
|
|
type: NodePort
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
targetPort: 8080
|
|
|
|
port: 8080
|
|
|
|
---
|
2022-07-24 02:15:37 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2019-11-19 05:51:48 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: ascii-live
|
|
|
|
namespace: ascii-live
|
|
|
|
annotations:
|
2022-07-24 02:15:37 +00:00
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
2019-11-19 05:51:48 +00:00
|
|
|
kubernetes.io/ingress.class: nginx
|
|
|
|
kubernetes.io/preserve-host: "true"
|
|
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
- host: ascii.live
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2022-07-24 02:15:37 +00:00
|
|
|
pathType: Prefix
|
2019-11-19 05:51:48 +00:00
|
|
|
backend:
|
2022-07-24 02:15:37 +00:00
|
|
|
service:
|
|
|
|
name: ascii-live
|
|
|
|
port:
|
|
|
|
number: 8080
|
2019-11-19 05:51:48 +00:00
|
|
|
tls:
|
|
|
|
- secretName: ascii-live-tls-prod-cert
|
|
|
|
hosts:
|
|
|
|
- ascii.live
|