---
apiVersion: apps/v1
kind: Deployment
metadata:
name: plesk-deployment
labels:
app: plesk
spec:
replicas: 2
selector:
matchLabels:
app: plesk
template:
metadata:
labels:
app: plesk
spec:
containers:
- name: plesk
image: gcr.io/gcp-tech/plesk:version1
# imagePullPolicy: Always
securityContext:
privileged: true
ports:
- containerPort: 8880
volumeMounts:
- mountPath: /sys/fs/cgroup
name: cgroup
readOnly: true
- mountPath: /tmp
name: tmpfs
- mountPath: /run
name: tmpfs
- mountPath: /run/lock
name: tmpfs
volumes:
- name: tmpfs
emptyDir: {}
- name: cgroup
hostPath:
path: "/sys/fs/cgroup"
type: Directory
---
apiVersion: v1
kind: Service
metadata:
name: plesk-Service
spec:
selector:
app: plesk
ports:
- protocol: TCP
port: 8880
targetPort: 8880
type: LoadBalancer```