Skip to content

Commit

Permalink
deployments: make openssl pod scripts prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Mar 13, 2024
1 parent f08cff6 commit 3b2b71a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion deployments/openssl/openssl-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ spec:
command:
- /bin/bash
- "-c"
- "echo Workload started \nwhile true; do \n echo \"THIS IS A TEST MESSAGE\" | openssl s_client -connect openssl-frontend:443 -verify_return_error -CAfile /tls-config/RootCACert.pem\n sleep 30\ndone\n"
- |
echo Workload started
while true; do
echo "THIS IS A TEST MESSAGE" |
openssl s_client -connect openssl-frontend:443 -verify_return_error -CAfile /tls-config/RootCACert.pem
sleep 30
done
volumeMounts:
- name: tls-certs
mountPath: /tls-config
Expand Down
9 changes: 8 additions & 1 deletion deployments/openssl/openssl-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ spec:
command:
- /bin/bash
- "-c"
- "echo Workload started\nopenssl s_server -www -port 443 -cert /tls-config/certChain.pem -key /tls-config/key.pem -cert_chain /tls-config/certChain.pem &\nwhile true; do \n echo \"THIS IS A TEST MESSAGE\" | openssl s_client -connect openssl-backend:443 -verify_return_error -CAfile /tls-config/MeshCACert.pem -cert /tls-config/certChain.pem -key /tls-config/key.pem\n sleep 10\ndone\n"
- |
echo Workload started
openssl s_server -www -port 443 -cert /tls-config/certChain.pem -key /tls-config/key.pem -cert_chain /tls-config/certChain.pem &
while true; do
echo \"THIS IS A TEST MESSAGE\" |
openssl s_client -connect openssl-backend:443 -verify_return_error -CAfile /tls-config/MeshCACert.pem -cert /tls-config/certChain.pem -key /tls-config/key.pem
sleep 10
done
volumeMounts:
- name: tls-certs
mountPath: /tls-config
Expand Down

0 comments on commit 3b2b71a

Please sign in to comment.