mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Streamline https configuration
I added a folder /templates to make it easier to reproduce.
This commit is contained in:
parent
eb995d6ad4
commit
24fe55c2d5
2
deployment/digital-ocean/https/.gitignore
vendored
Normal file
2
deployment/digital-ocean/https/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
ingress.yaml
|
||||
issuer.yaml
|
||||
@ -12,20 +12,31 @@ $ kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/relea
|
||||
$ helm install --name cert-manager --namespace cert-manager stable/cert-manager
|
||||
```
|
||||
|
||||
Create letsencrypt issuers. _Change the email address_ in these files before running this command.
|
||||
## Create Letsencrypt Issuers and Ingress Services
|
||||
|
||||
Copy the configuration templates and change the file according to your needs.
|
||||
|
||||
```bash
|
||||
# in folder deployment/digital-ocean/https/
|
||||
$ kubectl apply -f issuer.yaml
|
||||
cp templates/issuer.template.yaml ./issuer.yaml
|
||||
cp templates/ingress.template.yaml ./ingress.yaml
|
||||
```
|
||||
|
||||
Create an ingress service in namespace `human-connection`. _Change the domain name_ according to your needs:
|
||||
At least, **change email addresses** in `issuer.yaml`. For sure you also want
|
||||
to _change the domain name_ in `ingress.yaml`.
|
||||
|
||||
Once you are done, apply the configuration:
|
||||
|
||||
```bash
|
||||
# in folder deployment/digital-ocean/https/
|
||||
$ kubectl apply -f ingress.yaml
|
||||
$ kubectl apply -f .
|
||||
```
|
||||
|
||||
By now, your cluster should have an external IP address assigned. If you visit
|
||||
your dashboard, this is how it should look like:
|
||||
|
||||

|
||||
|
||||
Check the ingress server is working correctly:
|
||||
|
||||
```bash
|
||||
|
||||
BIN
deployment/digital-ocean/https/ip-address.png
Normal file
BIN
deployment/digital-ocean/https/ip-address.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 226 KiB |
6
deployment/digital-ocean/https/namespace.yaml
Normal file
6
deployment/digital-ocean/https/namespace.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
kind: Namespace
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: human-connection
|
||||
labels:
|
||||
name: human-connection
|
||||
Loading…
x
Reference in New Issue
Block a user