cluster.fun/manifests/blackhole/blackhole.yaml
Marcus Noble 0accc05333
Upgraded ingress resources
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2021-10-16 07:39:46 +01:00

60 lines
1.0 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: black-hole
namespace: kube-system
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 9090
name: web
selector:
app: black-hole
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: black-hole
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: black-hole
template:
metadata:
labels:
app: black-hole
spec:
containers:
- name: black-hole
image: averagemarcus/black-hole:latest
imagePullPolicy: Always
ports:
- containerPort: 9090
name: web
resources:
limits:
memory: 10Mi
requests:
memory: 10Mi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: black-hole
namespace: kube-system
spec:
rules:
- http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: black-hole
port:
number: 80