Sha256: ffc2cb6b0c0a21838e0ad2114d6b8f7eaee32fea72a8451e7de28b18b3819bdf

Contents?: true

Size: 1.89 KB

Versions: 93

Compression:

Stored size: 1.89 KB

Contents

Kubernetes Configuration
========================

Set namespace
-------------

Open files "deployment-*.yaml", "role-rubypitaya.yaml" and "rolebinding-rubypitaya.yaml" and set the correct namespace on fields and links


Apply sequence
--------------

If you already has a postgres don't apply the postgres files and change the
deployment-rubypitaya.yaml postgres env vars.
Run the following command on the listed files.
But remember to put your namespace and your KUBECONFIG env var if you need.

```sh
$ kubectl apply -f [file-path]
```

persistent-volume.yaml

statefulset-etcd.yaml
statefulset-nats.yaml
statefulset-postgres.yaml
statefulset-redis.yaml

service-etcd.yaml
service-nats.yaml
service-postgres.yaml
service-redis.yaml

deployment-connector.yaml
service-connector.yaml


Create gitlab-registry secret
-----------------------------

Run the following command.
But remember to put your namespace and your KUBECONFIG env var if you need.

```sh
$ kubectl create secret docker-registry gitlab-registry --docker-server=[registry-server] --docker-username=[username] --docker-password=[password]
```

If you use a different registry name instead of "gitlab-registry" change the deployment-rubypitaya.yaml imagePullSecrets.name


Apply sequence
--------------

Run the following command on the listed files.
But remember to put your namespace and your KUBECONFIG env var if you need.

```sh
$ kubectl apply -f [file-path]
```

deployment-rubypitaya.yaml
service-rubypitaya.yaml


Setup nginx for gameserver
--------------------------

Run the following command to create configmap with nginx.conf file.
But remember to put your namespace and your KUBECONFIG env var if you need.

```sh
$ kubectl create configmap nginx-config --from-file=./gameplay/nginx.conf
```

Create the deployments and services for nginx:

```sh
$ kubectl apply -f ./gameplay/deployment-nginx.yaml
$ kubectl apply -f ./gameplay/service-nginx.yaml
```

Version data entries

93 entries across 89 versions & 1 rubygems

Version Path
rubypitaya-3.19.6 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.19.5 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.19.4 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.19.3 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.19.2 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.19.1 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.19.0 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.18.0 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.17.2 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.17.1 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.17.0 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.16.0 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.15.3 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.15.2 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.15.1 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.15.0 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.14.0 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.13.1 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.13.0 ./lib/rubypitaya/app-template/kubernetes/README.md
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/kubernetes/README.md