💥 add all the files

This commit is contained in:
2024-07-23 16:28:04 +01:00
parent 4fa0fe6fc1
commit d71c9505e7
101 changed files with 1158 additions and 153 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