💥 add all the files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user