Skip to content

Mysql & Nginx issue while running Plesk docker on Kubernetes #12

Description

@peanutpi

Description

  • I am trying to run this (plesk/plesk:latest) docker container on my kuberntes v1.7.8-gke.0 running on Google Container engine.
  • The issue I am facing is that plesk redirect me to login page after few second of browsing on plesk dashboard.
  • Following is my deployment & service
apiVersion: v1
kind: Service
metadata:
  name: plesk
  labels:
    app: plesk
spec:
  selector:
    app: plesk
  ports:
  - port: 8880
    targetPort: port-8880
    name: port-8880
  - port: 21
    targetPort: port-21
    name: port-21
  - port: 80
    targetPort: port-80
    name: port-80
  - port: 443
    targetPort: port-443
    name: port-443
  - port: 8443
    targetPort: port-8443
    name: port-8443
  - port: 8447
    targetPort: port-8447
    name: port-8447
  type: LoadBalancer

---

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: plesk
spec:
  replicas: 1
  progressDeadlineSeconds: 300
  template:
    metadata:
      labels:
        app: plesk
    spec:
      containers:
      - name: plesk
        image: plesk/plesk
        ports:
        - name: port-8880
          containerPort: 8880
        - name: port-21
          containerPort: 21
        - name: port-80
          containerPort: 80
        - name: port-443
          containerPort: 443
        - name: port-8443
          containerPort: 8443
        - name: port-8447
          containerPort: 8447
  1. Sync IP addresses between Plesk and OS. For that go to Tools & Settings > IP Addresses > Reread IP
  2. Select Repair to fix missing IP in the interface or Remove if it is no longer required.
  3. Enable nginx service:
# /usr/local/psa/admin/bin/nginxmng -e
  • On step 2 when I click on repair, it's showing me following error
Error: ifmng failed: Execution of /sbin/ip addr add 172.17.0.3/255.255.0.0 dev eth0 label eth0:1 failed with return code 2. Stderr is RTNETLINK answers: Operation not permitted
  • The issue I am facing is that plesk redirect me to login page after few second of browsing on plesk dashboard.

  • This issues never came when I ran the same on my Ubuntu 16.04 Host machine using plain docker. using following command

docker run -d -P plesk/plesk

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions