Skip to content

Commit

Permalink
Add ldap-v3 demo application
Browse files Browse the repository at this point in the history
  • Loading branch information
corest committed Nov 23, 2024
1 parent dc58a67 commit b564907
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 2 deletions.
102 changes: 101 additions & 1 deletion deploy/kubernetes/complete-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ spec:
- command:
- sh
- -c
- ./run.sh # > /dev/null 2>&1
- ./run.sh true # > /dev/null 2>&1
env:
- name: PYTHONUNBUFFERED
value: '1'
Expand Down Expand Up @@ -2037,3 +2037,103 @@ spec:
targetPort: 50051
selector:
name: mizutest-sctp-client
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: mizutest-sctp-server
namespace: sock-shop
spec:
egress:
- {}
ingress:
- ports:
- port: 50051
protocol: SCTP
podSelector:
matchLabels:
name: mizutest-sctp-server
policyTypes:
- Ingress
- Egress
---
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: openldap
labels:
app: openldap
spec:
replicas: 1
selector:
matchLabels:
app: openldap
template:
metadata:
labels:
app: openldap
spec:
containers:
- name: openldap
image: osixia/openldap:1.5.0
ports:
- containerPort: 389
---
apiVersion: v1
kind: Service
metadata:
name: openldap
labels:
app: openldap
spec:
ports:
- port: 389
targetPort: 389
selector:
app: openldap
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ldap-client
labels:
app: ldap-client
spec:
replicas: 1
selector:
matchLabels:
app: ldap-client
template:
metadata:
labels:
app: ldap-client
spec:
containers:
- name: ldap-client
image: kubehq/ldap-demo:client-v3-v0.1.0
imagePullPolicy: Always
args:
- -password
- admin
- -username
- "cn=admin,dc=example,dc=org"
- -baseDN
- "dc=example,dc=org"
- -server
- openldap
---
apiVersion: v1
kind: Service
metadata:
name: ldap-client
labels:
app: ldap-client
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: ldap-client
type: ClusterIP
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: kubeshark-hub-network-policy
name: mizutest-sctp-server
namespace: sock-shop
spec:
egress:
Expand Down
80 changes: 80 additions & 0 deletions deploy/kubernetes/manifests/extras/61-ldap-client-server-v3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: openldap
labels:
app: openldap
spec:
replicas: 1
selector:
matchLabels:
app: openldap
template:
metadata:
labels:
app: openldap
spec:
containers:
- name: openldap
image: osixia/openldap:1.5.0
ports:
- containerPort: 389
---
apiVersion: v1
kind: Service
metadata:
name: openldap
labels:
app: openldap
spec:
ports:
- port: 389
targetPort: 389
selector:
app: openldap
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ldap-client
labels:
app: ldap-client
spec:
replicas: 1
selector:
matchLabels:
app: ldap-client
template:
metadata:
labels:
app: ldap-client
spec:
containers:
- name: ldap-client
image: kubehq/ldap-demo:client-v3-v0.1.0
imagePullPolicy: Always
args:
- -password
- admin
- -username
- "cn=admin,dc=example,dc=org"
- -baseDN
- "dc=example,dc=org"
- -server
- openldap
---
apiVersion: v1
kind: Service
metadata:
name: ldap-client
labels:
app: ldap-client
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: ldap-client
type: ClusterIP

0 comments on commit b564907

Please sign in to comment.