apiVersion: apps/v1 kind: Deployment metadata: name: rubypitaya labels: app: {{ .Values.app }} component: rubypitaya spec: replicas: 1 selector: matchLabels: app: {{ .Values.app }} component: rubypitaya template: metadata: labels: app: {{ .Values.app }} component: rubypitaya spec: containers: - name: rubypitaya image: "{{ .Values.rubypitaya.image.repository }}:{{ .Values.rubypitaya.image.tag }}" command: ["bundle", "exec", "rubypitaya", "run"] ports: - containerPort: 4567 name: rubypitaya env: - name: RUBYPITAYA_SERVER_ENVIRONMENT value: {{ .Values.rubypitaya.server.environment | quote }} - name: RUBYPITAYA_NATS_URL value: "nats://nats.{{ .Values.namespace }}.svc.cluster.local:4222" - name: RUBYPITAYA_ETCD_URL value: "http://etcd.{{ .Values.namespace }}.svc.cluster.local:2379" - name: RUBYPITAYA_REDIS_URL value: "redis://redis.{{ .Values.namespace }}.svc.cluster.local:6379" - name: RUBYPITAYA_DATABASE_NAME value: {{ .Values.database.name | quote }} - name: RUBYPITAYA_DATABASE_HOST value: {{ .Values.database.host | quote }} - name: RUBYPITAYA_DATABASE_USER value: {{ .Values.database.user | quote }} - name: RUBYPITAYA_DATABASE_PORT value: {{ .Values.database.port | quote }} - name: RUBYPITAYA_DATABASE_PASSWORD value: {{ .Values.database.password | quote }} - name: RUBYPITAYA_HTTP_AUTH_ENABLED value: {{ .Values.http.auth.enabled | quote }} - name: RUBYPITAYA_HTTP_AUTH_USER value: {{ .Values.http.auth.user | quote }} - name: RUBYPITAYA_HTTP_AUTH_PASS value: {{ .Values.http.auth.pass | quote }} - name: MATCHMAKING_CURRENTROOMBLL value: kubernetes - name: MATCHMAKING_ROOMBLL_KUBERNETES_NAMESPACE value: {{ .Values.namespace }} - name: MATCHMAKING_ROOMBLL_KUBERNETES_CONTAINERIMAGE value: "{{ .Values.gameserver.image.repository }}:{{ .Values.gameserver.image.tag }}" - name: MATCHMAKING_ROOMBLL_KUBERNETES_INITIALPORT value: {{ .Values.gameserver.externalport.first | quote }} - name: MATCHMAKING_ROOMBLL_KUBERNETES_FINALPORT value: {{ .Values.gameserver.externalport.last | quote }} - name: MATCHMAKING_ROOMBLL_KUBERNETES_SERVICEHOST value: {{ .Values.gameserver.servicehost | quote }} imagePullSecrets: - name: gitlab-registry serviceAccount: rubypitaya serviceAccountName: rubypitaya