73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: swagger-ui-config
|
||
|
labels:
|
||
|
app: swagger-ui
|
||
|
namespace: swagger-ui
|
||
|
data:
|
||
|
URLS: "[ { name: \"Input Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/input.yml\"}, { name: \"Storage Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/storage.yml\" }, {name: \"Output Service (RDB)\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/output-service-rdb.yml\"}, {name: \"Model Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/model.yaml\"}, {name: \"Command and Control\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/command-and-control.yml\"} ]"
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: swagger-ui
|
||
|
namespace: swagger-ui
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: swagger-ui
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: swagger-ui
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: swagger-ui
|
||
|
image: swaggerapi/swagger-ui
|
||
|
imagePullPolicy: "Always"
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: swagger-ui-config
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: swagger-ui
|
||
|
namespace: swagger-ui
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- port: 80
|
||
|
targetPort: 8080
|
||
|
name: http
|
||
|
protocol: TCP
|
||
|
selector:
|
||
|
app: swagger-ui
|
||
|
---
|
||
|
apiVersion: networking.k8s.io/v1beta1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: swagger-ui
|
||
|
namespace: swagger-ui
|
||
|
annotations:
|
||
|
kubernetes.io/ingress.class: "nginx"
|
||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||
|
spec:
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- swagger.kmlabz.com
|
||
|
secretName: swagger-ui-cert-secret
|
||
|
rules:
|
||
|
- host: swagger.kmlabz.com
|
||
|
http:
|
||
|
paths:
|
||
|
- path: /
|
||
|
backend:
|
||
|
serviceName: swagger-ui
|
||
|
servicePort: http
|