Skip to content
Snippets Groups Projects
Verified Commit b0b657cc authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Add Kubernetes manifest

parent 3c800942
Branches main
No related merge requests found
Pipeline #14672 passed
......@@ -61,7 +61,7 @@ deploy_production:
variables:
NAMESPACE: howlargeisthelhc-staging
AGENT: stratus
HOST: grpc-helloworld.sauerburger.cloud
HOST: grpc-helloworld.sauerburger.io
environment:
name: Production Environment
url: https://grpc-helloworld.sauerburger.cloud/
url: https://grpc-helloworld.sauerburger.io/
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: grpc-helloworld
name: grpc-helloworld
spec:
selector:
matchLabels:
app: grpc-helloworld
template:
metadata:
labels:
app: grpc-helloworld
spec:
containers:
- image: DOCKER_IMAGE
name: grpc-helloworld
---
apiVersion: v1
kind: Service
metadata:
name: grpc-helloworld
spec:
type: ClusterIP
ports:
- port: 50051
protocol: TCP
targetPort: 50051
selector:
app: grpc-helloworld
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
# kubernetes.io/ingress.class: nginx
name: grpc-helloworld
spec:
ingressClassName: nginx
rules:
- host: HOST
http:
paths:
- path: "/"
pathType: Prefix
backend:
service:
name: grpc-helloworld
port:
number: 50051
tls:
- hosts:
- HOST
secretName: grpc-helloworld-tls-secret
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment