Kubernetes Fixes (#413)

* Fix mattermost port number

* Bump version number

* Fix DB_PORT_NUMBER env variable

* List permissions required on data persistentvolume
This commit is contained in:
Kyle Robbertze 2019-09-09 11:56:10 +02:00 committed by Carlos Tadeu Panato Junior
parent f807181245
commit 5b37c5ff53
3 changed files with 5 additions and 5 deletions

View File

@ -76,7 +76,7 @@ Type: NodePort
IP: 10.0.0.194 IP: 10.0.0.194
Port: http 80/TCP Port: http 80/TCP
NodePort: http 32283/TCP NodePort: http 32283/TCP
Endpoints: 172.17.0.4:80 Endpoints: 172.17.0.4:8000
Session Affinity: None Session Affinity: None
No events. No events.
``` ```
@ -90,7 +90,7 @@ curl -L http://192.168.99.100:32283
### Optional steps ### Optional steps
* If you want your data to be persistent you will need to make persistent volumes for Mattermost and Postgres. * If you want your data to be persistent you will need to make persistent volumes for Mattermost and Postgres. This requires adding a [securityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#discussion) to the deployment to set `runAsUser: 2000`, `runAsGroup: 2000` and `fsGroup: 2000`.
* 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 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](http://kubernetes.io/docs/user-guide/ingress/#ingress-controllers) and an ingress map 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
``` ```

View File

@ -17,14 +17,14 @@ spec:
spec: spec:
containers: containers:
- name: mattermost-app - name: mattermost-app
image: "mattermost/mattermost-prod-app:5.13.0" image: "mattermost/mattermost-prod-app:5.14.1"
env: env:
- name: DB_HOST - name: DB_HOST
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: mattermost.env name: mattermost.env
key: db-host key: db-host
- name: DB_PORT - name: DB_PORT_NUMBER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: mattermost.env name: mattermost.env

View File

@ -7,7 +7,7 @@ spec:
type: NodePort type: NodePort
ports: ports:
- port: 80 - port: 80
targetPort: 80 targetPort: 8000
protocol: TCP protocol: TCP
name: http name: http
selector: selector: