66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: finance-dbt-doc
|
|
namespace: ${namespace}
|
|
spec:
|
|
selector:
|
|
app: finance-dbt-doc
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|
|
protocol: TCP
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: finance-dbt-doc
|
|
namespace: ${namespace}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: finance-dbt-doc
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: finance-dbt-doc
|
|
spec:
|
|
containers:
|
|
- name: finance-dbt-doc
|
|
image: docker-registry.mujiannan.com:5001/mujiannan/finance-dbt:${image_tag}
|
|
ports:
|
|
- containerPort: 8080
|
|
command: ["bash", "/app/doc-server.sh", ""]
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 10Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 200Mi
|
|
envFrom:
|
|
- secretRef:
|
|
name: finance-dbt-doc-envs
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: finance-dbt-doc
|
|
namespace: ${namespace}
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: ${ingress_host}
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: /(.*)
|
|
backend:
|
|
service:
|
|
name: finance-dbt-doc
|
|
port:
|
|
number: 8080
|