OpenShift/Kubernetes中的WordPress

yzuktlbb  于 2023-08-03  发布在  Kubernetes
关注(0)|答案(1)|浏览(118)

我只是在做一个wordpress部署来练习openshift,我有这个问题,我不能解决:

AH00558: apache2: Unable to reliably determine the FQDN of the server, using [10.128.2.60](https://10.128.2.60/). Globally set the "ServerName" directive to suppress this message
(13) Permission denied: AH00072: make_sock: unable to connect to address \[::\]:80
(13) Permission denied: AH00072: make_sock: unable to connect to address [0.0.0.0:80](https://0.0.0.0:80/)
no listening sockets available, switch off
AH00015: Unable to open logs

字符串
这是我的WordPress部署文件:

apiVersion: apps/v1
kind: Deployments
metadata:
  name: wordpress
specs:
  replies: 1
  selector:
    matchLabels:
      apps: wordpress
  templates:
    metadata:
      labels:
        apps: wordpress
    specs:
      containers:
      - name: wordpress
        image: wordpress:5.8.3-php7.4-apache
      ports:
      - containerPort: 8443
        name: wordpress
      volumeMounts:
      - name: wordpress-data
        mountPath: /var/www
      env:
      - name: WORDPRESS_DB_HOST
        value: mysql-service.default.svc.cluster.local
      - name: WORDPRESS_DB_PASSWORD
        valueFrom:
          secretKeyRef:
            name: wp-db-secrets
            key: MYSQL_ROOT_PASSWORD
      - name: WORDPRESS_DB_USER
        value: root
      - name: WORDPRESS_DB_NAME
        value: wordpress
      volumes:
      - name: wordpress-data
        persistentVolumeClaim:
          claimName: wordpress-volume


我的服务:

kind: Service
apiVersion: v1
metadata:
  name: wordpress-service
specs:
  type: LoadBalancer
    selector:
      apps: wordpress
  ports:
  - name: http
    protocol: TCP
    port: 8443
    targetPort: 8443


我应该简单地把它返回给我的IP地址和登录到WordPress

zzwlnbp8

zzwlnbp81#

权限被拒绝是在端口80上,您配置的端口是8443访问它:8443或将其更改为端口80

相关问题