62 lines
1.1 KiB
YAML
62 lines
1.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: asyncapi
|
|
namespace: asyncapi
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: asyncapi
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: asyncapi
|
|
spec:
|
|
containers:
|
|
- name: asyncapi
|
|
image: registry.kmlabz.com/birbnetes/asyncapi
|
|
imagePullPolicy: "Always"
|
|
ports:
|
|
- containerPort: 80
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: asyncapi
|
|
namespace: asyncapi
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
name: http
|
|
protocol: TCP
|
|
selector:
|
|
app: asyncapi
|
|
---
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: asyncapi
|
|
namespace: asyncapi
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- asyncapi.kmlabz.com
|
|
secretName: asyncapi-cert-secret
|
|
rules:
|
|
- host: asyncapi.kmlabz.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: asyncapi
|
|
servicePort: http
|