2018年8月1日 | Leave a comment 问题: 解决: --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: phpldapadmin-deploy-dev spec: replicas: 1 template: metadata: labels: app: phpldapadmin-dev spec: containers: - name: phpldapadmin-dev image: osixia/phpldapadmin:0.7.1 ports: - containerPort: 80 env: - name: PHPLDAPADMIN_LDAP_HOSTS value: "172.18.255.209" # - # name: PHPLDAPADMIN_LDAP_PORT # value: "389" - name: PHPLDAPADMIN_HTTPS value: "false" #docker run -p 3333:80 -e PHPLDAPADMIN_LDAP_HOSTS=10.17.2.54 -e PHPLDAPADMIN_HTTPS=false -d osixia/phpldapadmin:0.7.1 --- apiVersion: v1 kind: Service metadata: name: phpldapadmin-service-dev spec: type: LoadBalancer selector: app: phpldapadmin-dev ports: - name: http protocol: TCP port: 80 targetPort: 80 123456789101112131415161718192021222324252627282930313233343536373839404142434445 ---apiVersion: extensions/v1beta1kind: Deploymentmetadata: name: phpldapadmin-deploy-devspec: replicas: 1 template: metadata: labels: app: phpldapadmin-dev spec: containers: - name: phpldapadmin-dev image: osixia/phpldapadmin:0.7.1 ports: - containerPort: 80 env: - name: PHPLDAPADMIN_LDAP_HOSTS value: "172.18.255.209" # - # name: PHPLDAPADMIN_LDAP_PORT # value: "389" - name: PHPLDAPADMIN_HTTPS value: "false"#docker run -p 3333:80 -e PHPLDAPADMIN_LDAP_HOSTS=10.17.2.54 -e PHPLDAPADMIN_HTTPS=false -d osixia/phpldapadmin:0.7.1 ---apiVersion: v1kind: Servicemetadata: name: phpldapadmin-service-devspec: type: LoadBalancer selector: app: phpldapadmin-dev ports: - name: http protocol: TCP port: 80 targetPort: 80 参考: