GithubHelp home page GithubHelp logo

classicvalues / tls-sidecar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iblockin/tls-sidecar

1.0 1.0 0.0 5 KB

TLS/SSL sidecar for terminating HTTPS w/i k8s clusters

Dockerfile 41.98% Shell 58.02%

tls-sidecar's Introduction

tls-sidecar

TLS/SSL sidecar for terminating HTTPS w/i k8s clusters

You can use this repository to demo a sidecar which can terminate TLS connections. This demo makes use of the kubernetes service type of type LoadBalancer, so it assumes that your cluster supports the automatic creation of load balancers.

To use:

# create a self-signed certificate
openssl req -x509 -newkey rsa:2048 -keyout tls.key -out tls.crt -nodes -subj '/CN=echo-server'
# create a TLS secret
kubectl create secret tls echo-tls --cert=tls.crt --key=tls.key
# clone this repository and load up the pbrumblay/tls-sidecar and pbrumblay/echo-server pods.
git clone https://github.com/pbrumblay/tls-sidecar
kubectl apply -f tls-sidecar/kubernetes/deployment.yaml
# Test it out. 
kubectl get svc echo-server
NAME          CLUSTER-IP     EXTERNAL-IP      PORT(S)         AGE
echo-server   10.3.250.228   <REDACTED>   443:31619/TCP   10m

# Now with the new IP you can verify the echo-server works.
curl -k https://<REDACTED>/lorem

Note that we're using curl's "-k" switch to disable certification validation. You'll want to use a real certificate for real-world use cases.

tls-sidecar's People

Contributors

pbrumblay avatar classicvalues avatar zzmmzz777 avatar mend-bolt-for-github[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.