60 lines
1.0 KiB
YAML
60 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: mandelmapper
|
|
name: mandelmapper
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: mandelmapper
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mandelmapper
|
|
spec:
|
|
containers:
|
|
- image: registry.deadbeef.codes/mandelmapper
|
|
name: mandelmapper
|
|
resources:
|
|
requests:
|
|
memory: "24Mi"
|
|
cpu: "50m"
|
|
status: {}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: mandelmapper
|
|
name: mandelmapper
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- port: 6161
|
|
protocol: TCP
|
|
targetPort: 6161
|
|
selector:
|
|
app: mandelmapper
|
|
status:
|
|
loadBalancer: {}
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress-mandelmapper
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: mandelmap.home.stevenpolley.net
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: mandelmapper
|
|
port:
|
|
number: 6161 |