ascii-live/deployment/deployment.yml

54 lines
1,009 B
YAML
Raw Normal View History

2019-11-19 05:51:48 +00:00
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ascii-live
namespace: ascii-live
spec:
template:
metadata:
labels:
app: ascii-live
spec:
containers:
2020-09-21 12:27:27 +00:00
- image: hugomd/ascii-live:8d6157e3
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
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ascii-live
namespace: ascii-live
annotations:
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: /
backend:
serviceName: ascii-live
servicePort: 8080
tls:
- secretName: ascii-live-tls-prod-cert
hosts:
- ascii.live