documentation fixes 📃
This commit is contained in:
parent
c8a5cfa236
commit
850fc79407
@ -1,7 +1,7 @@
|
||||
Mattermost on Kubernetes
|
||||
=======
|
||||
|
||||
You can use these manifests as a starting point to run Mattermost on kubernetes.
|
||||
You can use these manifests as a starting point to run Mattermost on Kubernetes.
|
||||
|
||||
If you already have a Kubernetes cluster you can skip this first step.
|
||||
|
||||
@ -11,7 +11,7 @@ To get started we can use [minikube](https://github.com/kubernetes/minikube/) to
|
||||
|
||||
Download and install minikube and any dependancies for your operating system (see minikube readme). You will also need to install [kubectl](http://kubernetes.io/docs/user-guide/prereqs/).
|
||||
|
||||
Start the minikube VM
|
||||
Start the minikube VM and Kubernetes API server
|
||||
|
||||
```
|
||||
minikube start
|
||||
@ -41,17 +41,22 @@ kubectl expose deployment postgres \
|
||||
|
||||
The Mattermost application is split into three manifests.
|
||||
|
||||
First create the secret which will set the environment varibles for the main application container. If you changed the values for the Postgres container you will also need to set the values in mattermost.secret.yaml using the [manual steps for creating a secret](http://kubernetes.io/docs/user-guide/secrets/#creating-a-secret-manually).
|
||||
First, create the secret which will set the environment varibles for the main application container. If you changed the values for the Postgres container you will also need to set the values in mattermost.secret.yaml using the [manual steps for creating a secret](http://kubernetes.io/docs/user-guide/secrets/#creating-a-secret-manually).
|
||||
```
|
||||
kubectl create -f mattermost.secret.yaml
|
||||
```
|
||||
Next create the mattermost deployment (main application) with
|
||||
Next create the Mattermost deployment (main application) with
|
||||
```
|
||||
kubectl create -f mattermost.deployment.yaml
|
||||
```
|
||||
You should check that the pod started successfully with `kubectl get po -l app=mattermost`
|
||||
You should check that the pod started successfully with
|
||||
```
|
||||
kubectl get po -l app=mattermost
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
mattermost-app-1605216003-fvnz1 1/1 Running 0 44m
|
||||
```
|
||||
|
||||
Finally you can expose the application with a service so you can easily access the application from a web browser. The example service is using a `type: NodePort` which means it will be exposed on a random high port on your cluster nodes (or minikube VM if you're using minikube).
|
||||
Finally, you can expose the application with a service so you can easily access the application from a web browser. The example service is using a `type: NodePort` which means it will be exposed on a random high port on your cluster nodes (or minikube VM if you're using minikube). If you are running your Kubernetes cluster in AWS or GCE you should change the type to loadBalancer.
|
||||
```
|
||||
kubectl create -f mattermost.svc.yaml
|
||||
```
|
||||
@ -85,10 +90,10 @@ curl -L http://192.168.99.100:32283
|
||||
|
||||
### Optional steps
|
||||
|
||||
* If you want your data to be persistent you will need to make persistent volume for Mattermost and Postgres.
|
||||
* If you want your data to be persistent you will need to make persistent volumes for Mattermost and Postgres.
|
||||
* If you want to change advanced settings for the mattermost container you can make a [configMap](http://blog.kubernetes.io/2016/04/configuration-management-with-containers.html) for the /mattermost/config/config.json file
|
||||
* If you want the application exposed on port 80 you can either specify the port in the service manifest or use an ingress controller and an ingress mapp for the mattermost service. A sample ingress map would be
|
||||
```
|
||||
* If you want the application exposed on port 80 you can either specify the port in the service manifest or use an [ingress controller](http://kubernetes.io/docs/user-guide/ingress/#ingress-controllers) and an ingress map for the mattermost service. A sample ingress map would be
|
||||
```
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
|
Reference in New Issue
Block a user