docker icon indicating copy to clipboard operation
docker copied to clipboard

After deploying plesk in Kubernetes Engine (GKE) It redirecting me to login page again and again

Open Aadeshkale opened this issue 4 years ago • 0 comments

 
---
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```

Aadeshkale avatar Aug 10 '21 12:08 Aadeshkale