Fixed K8s/Helm deployment.
This commit is contained in:
parent
2fdbb67c67
commit
a61a35be75
22
README.md
22
README.md
@ -15,7 +15,7 @@ https://stackedit.io/
|
|||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
# install dependencies
|
# install dependencies
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
@ -51,15 +51,24 @@ helm install --name stackedit stackedit/stackedit \
|
|||||||
--set githubClientSecret=$GITHUB_CLIENT_SECRET \
|
--set githubClientSecret=$GITHUB_CLIENT_SECRET \
|
||||||
--set wordpressClientId=\"$WORDPRESS_CLIENT_ID\" \
|
--set wordpressClientId=\"$WORDPRESS_CLIENT_ID\" \
|
||||||
--set wordpressSecret=$WORDPRESS_CLIENT_SECRET
|
--set wordpressSecret=$WORDPRESS_CLIENT_SECRET
|
||||||
|
```
|
||||||
# Upgrade to the latest version
|
|
||||||
|
Later, to upgrade StackEdit to the latest version:
|
||||||
|
|
||||||
|
```bash
|
||||||
helm repo update
|
helm repo update
|
||||||
helm upgrade stackedit stackedit/stackedit
|
helm upgrade stackedit stackedit/stackedit
|
||||||
|
```
|
||||||
|
|
||||||
# Uninstall StackEdit
|
If you want to uninstall StackEdit:
|
||||||
|
|
||||||
|
```bash
|
||||||
helm delete --purge stackedit
|
helm delete --purge stackedit
|
||||||
|
```
|
||||||
|
|
||||||
# Deploy using your existing ingress controller and cert-manager
|
If you want to use your existing ingress controller and cert-manager issuer:
|
||||||
|
|
||||||
|
```bash
|
||||||
# See https://docs.cert-manager.io/en/latest/tutorials/acme/quick-start/index.html
|
# See https://docs.cert-manager.io/en/latest/tutorials/acme/quick-start/index.html
|
||||||
helm install --name stackedit stackedit/stackedit \
|
helm install --name stackedit stackedit/stackedit \
|
||||||
--set dropboxAppKey=$DROPBOX_API_KEY \
|
--set dropboxAppKey=$DROPBOX_API_KEY \
|
||||||
@ -72,8 +81,7 @@ helm install --name stackedit stackedit/stackedit \
|
|||||||
--set wordpressSecret=$WORDPRESS_CLIENT_SECRET \
|
--set wordpressSecret=$WORDPRESS_CLIENT_SECRET \
|
||||||
--set ingress.enabled=true \
|
--set ingress.enabled=true \
|
||||||
--set ingress.annotations."kubernetes\.io/ingress\.class"=nginx \
|
--set ingress.annotations."kubernetes\.io/ingress\.class"=nginx \
|
||||||
--set ingress.annotations."certmanager\.k8s\.io/issuer"=letsencrypt-prod \
|
--set ingress.annotations."cert-manager\.io/cluster-issuer"=letsencrypt-prod \
|
||||||
--set ingress.annotations."certmanager\.k8s\.io/acme-challenge-type"=http01 \
|
|
||||||
--set ingress.hosts[0].host=stackedit.example.com \
|
--set ingress.hosts[0].host=stackedit.example.com \
|
||||||
--set ingress.hosts[0].paths[0]=/ \
|
--set ingress.hosts[0].paths[0]=/ \
|
||||||
--set ingress.tls[0].secretName=stackedit-tls \
|
--set ingress.tls[0].secretName=stackedit-tls \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "stackedit.fullname" . -}}
|
{{- $fullName := include "stackedit.fullname" . -}}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}
|
||||||
|
Loading…
Reference in New Issue
Block a user