In Maple, the plugin API is slightly different: the apk file is built and stored in the android-app Docker image, then served by a simple Caddy file server. This makes it easy to distribute the apk to students.
28 lines
614 B
Plaintext
28 lines
614 B
Plaintext
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: android-app
|
|
labels:
|
|
app.kubernetes.io/name: android-app
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: android-app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: android-app
|
|
spec:
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
containers:
|
|
- name: android-app
|
|
image: {{ ANDROID_APP_DOCKER_IMAGE }}
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8000
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|