代码拉取完成,页面将自动刷新
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: public-service
name: ldap
labels:
app: ldap
spec:
replicas: 1
template:
metadata:
labels:
app: ldap
spec:
containers:
- name: ldap
image: atjapan2015/openldap:1.2.2 # osixia/openldap:1.2.2
args: ["--copy-service"]
volumeMounts:
- name: openldap-data
mountPath: /var/lib/ldap
subPath: data
- name: openldap-data
mountPath: /etc/ldap/slapd.d
subPath: config
- name: openldap-data
mountPath: /container/service/slapd/assets/certs
subPath: certs
- name: secret-volume
mountPath: /container/environment/01-custom
- name: container-run
mountPath: /container/run
ports:
- containerPort: 389
name: openldap
- name: ssl-ldap-port
containerPort: 636
livenessProbe:
tcpSocket:
port: openldap
initialDelaySeconds: 20
periodSeconds: 10
failureThreshold: 10
readinessProbe:
tcpSocket:
port: openldap
initialDelaySeconds: 20
periodSeconds: 10
failureThreshold: 10
volumes:
- name: openldap-data
persistentVolumeClaim:
claimName: openldap-data-pvc
- name: "secret-volume"
secret:
secretName: "ldap-secret"
- name: container-run
emptyDir: {}
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
namespace: public-service
name: openldap-data-pvc
spec:
accessModes: [ "ReadWriteMany" ]
resources:
requests:
storage: 1Gi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。