fermyon-spin-test/app/spin-test-app/deploy.yaml
kjuulh 17e73aa12e
feat: with updated deployment
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-01-23 21:43:24 +01:00

62 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: spin-test-app
namespace: dev
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
namespace: dev
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
namespace: dev
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