diff --git a/deploy/kubernetes/complete-demo.yaml b/deploy/kubernetes/complete-demo.yaml index 1839a70..5d57a1b 100644 --- a/deploy/kubernetes/complete-demo.yaml +++ b/deploy/kubernetes/complete-demo.yaml @@ -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' @@ -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 diff --git a/deploy/kubernetes/manifests/extras/60-mizutest-sctp-network-policy.yaml b/deploy/kubernetes/manifests/extras/60-mizutest-sctp-network-policy.yaml index a34fed7..bf37d00 100644 --- a/deploy/kubernetes/manifests/extras/60-mizutest-sctp-network-policy.yaml +++ b/deploy/kubernetes/manifests/extras/60-mizutest-sctp-network-policy.yaml @@ -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: diff --git a/deploy/kubernetes/manifests/extras/61-ldap-client-server-v3.yaml b/deploy/kubernetes/manifests/extras/61-ldap-client-server-v3.yaml new file mode 100644 index 0000000..ccf255a --- /dev/null +++ b/deploy/kubernetes/manifests/extras/61-ldap-client-server-v3.yaml @@ -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