1 Star 0 Fork 0

atjapan2015/k8s-openldap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ldap-deployment.yaml 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
sehub 提交于 2019-12-14 22:43 . first commit
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/atjapan2015/k8s-openldap.git
git@gitee.com:atjapan2015/k8s-openldap.git
atjapan2015
k8s-openldap
k8s-openldap
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385