2024-01-23 21:24:01 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: spin-test-app
|
2024-01-23 21:43:24 +01:00
|
|
|
namespace: dev
|
2024-01-23 21:24:01 +01:00
|
|
|
spec:
|
|
|
|
replicas: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: spin-test-app
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: spin-test-app
|
|
|
|
spec:
|
|
|
|
runtimeClassName: wasmtime-spin
|
|
|
|
containers:
|
|
|
|
- name: spin-test-app
|
|
|
|
image: kasperhermansen/spin-test-app:0.1.0
|
|
|
|
command: ["/"]
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: spin-test-app
|
2024-01-23 21:43:24 +01:00
|
|
|
namespace: dev
|
2024-01-23 21:24:01 +01:00
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 80
|
|
|
|
targetPort: 80
|
|
|
|
selector:
|
|
|
|
app: spin-test-app
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: spin-test-app
|
2024-01-23 21:43:24 +01:00
|
|
|
namespace: dev
|
2024-01-23 21:24:01 +01:00
|
|
|
annotations:
|
|
|
|
cert-manager.io/issuer: "kjuulh-app"
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- spin-test.kjuulh.app
|
|
|
|
secretName: tls-test-spin-ingress-dns
|
|
|
|
rules:
|
|
|
|
- host: spin-test.kjuulh.app
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Exact
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: spin-test-app
|
|
|
|
port:
|
|
|
|
number: 80
|
|
|
|
|