summaryrefslogtreecommitdiff
path: root/roles/apps/whawty/auth/instance/templates/pod-spec.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/whawty/auth/instance/templates/pod-spec.yml.j2')
-rw-r--r--roles/apps/whawty/auth/instance/templates/pod-spec.yml.j216
1 files changed, 4 insertions, 12 deletions
diff --git a/roles/apps/whawty/auth/instance/templates/pod-spec.yml.j2 b/roles/apps/whawty/auth/instance/templates/pod-spec.yml.j2
index 45c692e9..b264577d 100644
--- a/roles/apps/whawty/auth/instance/templates/pod-spec.yml.j2
+++ b/roles/apps/whawty/auth/instance/templates/pod-spec.yml.j2
@@ -1,7 +1,7 @@
securityContext:
allowPrivilegeEscalation: false
-{# runAsUser: {{ whawty_auth_app_uid }} #}
-{# runAsGroup: {{ whawty_auth_app_gid }} #}
+ runAsUser: 990
+ runAsGroup: 990
containers:
- name: app
image: "ghcr.io/whawty/auth/app:v{{ whawty_auth_instances[whawty_auth_instance].version }}"
@@ -31,23 +31,15 @@ containers:
{% if 'sync' in whawty_auth_instances[whawty_auth_instance] %}
- name: sync
image: "ghcr.io/whawty/auth/sync:v{{ whawty_auth_instances[whawty_auth_instance].version }}"
- command:
- - "/gokr-rsyncd"
args:
- - "--daemon"
- - "--gokr.config=/sync/config.toml"
-{# TODO: remove debug output #}
- - "-v"
+ - "server"
volumeMounts:
- name: sync
- mountPath: /sync
+ mountPath: /config
readOnly: true
- name: store
mountPath: /store
readOnly: true
- env:
- - name: XDG_CONFIG_HOME
- value: "/sync"
ports:
- containerPort: {{ whawty_auth_instances[whawty_auth_instance].sync.port }}
hostPort: {{ whawty_auth_instances[whawty_auth_instance].sync.port }}