💥 add all the files

This commit is contained in:
2024-07-23 16:30:43 +01:00
commit 5b15e88959
96 changed files with 1158 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
apiVersion: v1
kind: Namespace
metadata:
name: django-python
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: django-webserver
namespace: django-python
spec:
replicas: 1
selector:
matchLabels:
app: django-python
template:
metadata:
labels:
app: django-python
spec:
containers:
- name: django-python
image: localhost:31795/django-python
imagePullPolicy: Always
ports:
- containerPort: 8000
name: webserver-port
volumeMounts:
- name: django-python-code
mountPath: /code
volumes:
- name: django-python-code
persistentVolumeClaim:
claimName: django-python-code
---
apiVersion: v1
kind: Service
metadata:
name: webserver
namespace: django-python
spec:
ports:
- name: http
port: 8000
protocol: TCP
selector:
app: django-python