ts3.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: teamspeak
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: teamspeak
  10. template:
  11. metadata:
  12. labels:
  13. name: teamspeak
  14. spec:
  15. affinity:
  16. nodeAffinity:
  17. requiredDuringSchedulingIgnoredDuringExecution:
  18. nodeSelectorTerms:
  19. - matchExpressions:
  20. - key: arch
  21. operator: In
  22. values:
  23. - x86
  24. containers:
  25. - name: teamspeak
  26. image: teamspeak:latest
  27. ports:
  28. - containerPort: 9987
  29. protocol: UDP
  30. name: swarm
  31. - containerPort: 10011
  32. protocol: TCP
  33. name: serverquery
  34. - containerPort: 30033
  35. protocol: TCP
  36. name: filetransfer
  37. env:
  38. - name: TS3SERVER_DB_PLUGIN
  39. value: "ts3db_mariadb"
  40. - name: TS3SERVER_DB_SQLCREATEPATH
  41. value: "create_mariadb"
  42. - name: TS3SERVER_DB_HOST
  43. value: "mariadb.mariadb"
  44. - name: TS3SERVER_DB_USER
  45. value: "teamspeak"
  46. - name: TS3SERVER_DB_NAME
  47. value: "teamspeak"
  48. - name: TS3SERVER_DB_WAITUNTILREADY
  49. value: "30"
  50. - name: TS3SERVER_LICENSE
  51. value: "accept"
  52. - name: TS3SERVER_DB_PASSWORD
  53. valueFrom:
  54. secretKeyRef:
  55. name: teamspeak
  56. key: mariadb-password
  57. volumeMounts:
  58. - name: pv
  59. mountPath: /var/ts3server
  60. volumes:
  61. - name: teamspeak
  62. secret:
  63. secretName: teamspeak
  64. - name: pv
  65. persistentVolumeClaim:
  66. claimName: teamspeak