Commit 29c4e5a8 authored by lecornichon's avatar lecornichon
Browse files

clean code

parent 8eab2c01
apiVersion: apps/v1
kind: Deployment
metadata:
name: project
namespace: NAMESPACE
spec:
replicas: 1
selector:
matchLabels:
app: project
template:
metadata:
labels:
app: project
spec:
containers:
- name: django
image: zasyvcng.gra5.container-registry.ovh.net/library/latest
ports:
- containerPort: 8000
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: template
namespace: NAMESPACE
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/rewrite-target: /
cert-manager.io/issuer: "letsencrypt-issuer"
spec:
tls:
- hosts:
- domain
secretName: template-tls
rules:
- host: domain
http:
paths:
- path: /
backend:
serviceName: template
servicePort: 8000
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: template
namespace: NAMESPACE
spec:
selector:
app: template
ports:
- port: 8000
targetPort: 8000
type: NodePort
No preview for this file type
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