问题: 解决:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
--- 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 |