💥 add all the files

This commit is contained in:
2024-06-19 13:45:18 +01:00
commit e52d2b5615
2 changed files with 129 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
apiVersion: v1
kind: Namespace
metadata:
name: portainer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: portainer
namespace: portainer
spec:
replicas: 1
selector:
matchLabels:
app: portainer
template:
metadata:
labels:
app: portainer
spec:
containers:
- image: portainer/portainer-ce:latest
imagePullPolicy: IfNotPresent
name: portainer
ports:
- containerPort: 9000
name: portainer-port
volumeMounts:
- name: portainer-config
mountPath: /data
volumes:
- name: portainer-config
hostPath:
path: /opt/kubernetes/portainer_kube/config/
---
apiVersion: v1
kind: Service
metadata:
name: portainer
namespace: portainer
spec:
ports:
- port: 80
targetPort: portainer-port
protocol: TCP
selector:
app: portainer