fermyon-spin-test/app/spin-test-app/deploy.yaml

62 lines
1.2 KiB
YAML
Raw Permalink Normal View History

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