Skip to content

Latest commit

 

History

History

kubernetes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

sshare server on Kubernetes

The following example shows how to run the sshare server on a Kubernetes cluster.

Requirements

  • nginx-ingress

Deploy sshare server with TLS

  1. Adjust the sshare_server.yaml to your Kubernetes cluster configuration. The thing that has to be changed is the domain name supported by your nginx-ingress configuration. You can do this by changing the value of the --backend-domain flag.

  2. Generate TLS certificates

You can use the certs.sh script to generate TLS certificates. In the san.cnf configuration file you can define the DNS name that is used to connect to the server..

$ ./certs.sh
  1. Create a secret with certificates
$ kubectl create ns sshare
$ kubectl -n sshare create secret generic tls --from-file=ca.pem=./ca-cert.pem --from-file=cert.pem=./server-cert.pem --from-file=key.pem=./server-key.pem
  1. Deploy the sshare server.
$ kubectl create -f sshare_server.yaml

The server is exposed by a service of the LoadBalancer type

That's all. The only thing left to do is add a record to your DNS that will be used to connect to the server.