2
0

upload manifests

This commit is contained in:
2020-11-01 18:20:54 +01:00
parent e1a02e8a68
commit abe61c79b1
5 changed files with 421 additions and 0 deletions

61
asyncapi.yml Normal file
View File

@@ -0,0 +1,61 @@
---
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