Commit b8f6a514 authored by Günter Hipler's avatar Günter Hipler
Browse files

changed manifests - still not working (hosts not allowed)

parent 1d7a853b
Pipeline #10981 passed with stage
in 6 minutes and 13 seconds
apiVersion: apps/v1
kind: Deployment
metadata:
name: oai-prod-deployment
namespace: memobase
name: oai-deployment
labels:
app: oai-prod-app
app: oai-api
spec:
selector:
matchLabels:
app: oai-prod-app
app: oai-api
replicas: 1
template:
metadata:
labels:
app: oai-prod-app
app: oai-api
tier: web
spec:
#serviceAccountName: oai-service-account #to be able to manage other pods inside the cluster
......
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: memobase-api-ingress
namespace: memobase
name: oai-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
labels:
app: oai-api
spec:
tls:
- hosts:
......@@ -17,5 +20,5 @@ spec:
paths:
- path: /
backend:
serviceName: oai-api-prod
servicePort: 9000
\ No newline at end of file
serviceName: oai-service
servicePort: 9000
apiVersion: v1
kind: Service
metadata:
name: oai-api-prod
namespace: memobase
name: oai-service
labels:
app: oai-prod-app
app: oai-api
spec:
ports:
- port: 9000
selector:
app: oai-prod-app
app: oai-api
tier: web
clusterIP: None
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment