Initialisation depot
This commit is contained in:
46
samba-api/k8s/service.yaml
Normal file
46
samba-api/k8s/service.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: samba-api-service
|
||||
namespace: samba-api
|
||||
labels:
|
||||
app: samba-api
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: samba-api
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: samba-api-ingress
|
||||
namespace: samba-api
|
||||
labels:
|
||||
app: samba-api
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- samba-api.yourdomain.com
|
||||
secretName: samba-api-tls
|
||||
rules:
|
||||
- host: samba-api.yourdomain.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: samba-api-service
|
||||
port:
|
||||
number: 80
|
||||
Reference in New Issue
Block a user