core-deployments/example-deployment.yaml

53 lines
897 B
YAML
Raw Normal View History

### Just an unfinished example, do not deploy!
2022-09-09 15:09:29 +02:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-deployment
labels:
app: test
spec:
replicas: 3
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- name: test
image: testcontainers/helloworld
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: test-service
spec:
selector:
app: test
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-ingress
spec:
ingressClassName: nginx
rules:
- host: "test.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: test-service
port:
number: 80