diff --git a/deployment/digital-ocean/https/.gitignore b/deployment/digital-ocean/https/.gitignore new file mode 100644 index 000000000..bebae8d05 --- /dev/null +++ b/deployment/digital-ocean/https/.gitignore @@ -0,0 +1,2 @@ +ingress.yaml +issuer.yaml diff --git a/deployment/digital-ocean/https/README.md b/deployment/digital-ocean/https/README.md index 398601e78..c30ac958f 100644 --- a/deployment/digital-ocean/https/README.md +++ b/deployment/digital-ocean/https/README.md @@ -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: + +![Screenshot of the kubernetes dashboard showing the extrenal ip address](./ip-address.png) + Check the ingress server is working correctly: ```bash diff --git a/deployment/digital-ocean/https/ip-address.png b/deployment/digital-ocean/https/ip-address.png new file mode 100644 index 000000000..765177401 Binary files /dev/null and b/deployment/digital-ocean/https/ip-address.png differ diff --git a/deployment/namespace-human-connection.yaml b/deployment/digital-ocean/https/namespace.yaml similarity index 100% rename from deployment/namespace-human-connection.yaml rename to deployment/digital-ocean/https/namespace.yaml diff --git a/deployment/digital-ocean/https/ingress.yaml b/deployment/digital-ocean/https/templates/ingress.template.yaml similarity index 100% rename from deployment/digital-ocean/https/ingress.yaml rename to deployment/digital-ocean/https/templates/ingress.template.yaml diff --git a/deployment/digital-ocean/https/issuer.yaml b/deployment/digital-ocean/https/templates/issuer.template.yaml similarity index 100% rename from deployment/digital-ocean/https/issuer.yaml rename to deployment/digital-ocean/https/templates/issuer.template.yaml diff --git a/deployment/human-connection/README.md b/deployment/human-connection/README.md index d6a2dd989..887b2300c 100644 --- a/deployment/human-connection/README.md +++ b/deployment/human-connection/README.md @@ -9,13 +9,21 @@ just apply our provided configuration files to your cluster. Copy our provided templates: ```bash -$ cp secrets.template.yaml human-connection/secrets.yaml -$ cp configmap.template.yaml human-connection/configmap.yaml +# in folder deployment/human-connection/ +$ cp templates/secrets.template.yaml ./secrets.yaml +$ cp templates/configmap.template.yaml ./configmap.yaml ``` Change the `configmap.yaml` as needed, all variables will be available as environment variables in your deployed kubernetes pods. +Probably you want to change this environment variable to your actual domain: + +``` +# in configmap.yaml +CLIENT_URI: "https://nitro-staging.human-connection.org" +``` + If you want to edit secrets, you have to `base64` encode them. See [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/secret/#creating-a-secret-manually). ```bash @@ -30,7 +38,8 @@ your deployed kubernetes pods. ## Create a namespace ```bash -$ kubectl apply -f namespace-human-connection.yaml +# in folder deployment/human-connection/ +$ kubectl apply -f namespace.yaml ``` If you have a [kubernets dashboard](../digital-ocean/dashboard/README.md) @@ -48,7 +57,7 @@ persistent volumes once before you apply the configuration. ## Apply the configuration ```bash -# in folder deployment/ +# in folder deployment/ $ kubectl apply -f human-connection/ ``` diff --git a/deployment/human-connection/namespace.yaml b/deployment/human-connection/namespace.yaml new file mode 100644 index 000000000..0710da55b --- /dev/null +++ b/deployment/human-connection/namespace.yaml @@ -0,0 +1,6 @@ +kind: Namespace +apiVersion: v1 +metadata: + name: human-connection + labels: + name: human-connection diff --git a/deployment/configmap.template.yaml b/deployment/human-connection/templates/configmap.template.yaml similarity index 100% rename from deployment/configmap.template.yaml rename to deployment/human-connection/templates/configmap.template.yaml diff --git a/deployment/secrets.template.yaml b/deployment/human-connection/templates/secrets.template.yaml similarity index 100% rename from deployment/secrets.template.yaml rename to deployment/human-connection/templates/secrets.template.yaml