apiVersion: apps/v1 kind: StatefulSet metadata: namespace: netbootxyz name: netbootxyz spec: replicas: 1 selector: matchLabels: app: netbootxyz serviceName: netbootxyz template: metadata: labels: app: netbootxyz spec: restartPolicy: Always terminationGracePeriodSeconds: 10 containers: - name: netbootxyz image: netbootxyz/netbootxyz:0.7.6-nbxyz18 resources: requests: cpu: 100m memory: 256Mi limits: cpu: 500m memory: 512Mi volumeMounts: - name: netbootxyz-config mountPath: /config - name: netbootxyz-assets mountPath: /assets subPath: Netbootxyz ports: - containerPort: 3000 name: web protocol: TCP - containerPort: 80 name: nginx protocol: TCP - containerPort: 69 name: tftp protocol: UDP env: - name: TFTPD_OPTS value: "--tftp-single-port" - name: MENU_VERSION value: "3.0.0" - name: NGINX_PORT value: "80" - name: WEB_APP_PORT value: "3000" volumes: - name: netbootxyz-config persistentVolumeClaim: claimName: netbootxyz-config-pvc - name: netbootxyz-assets persistentVolumeClaim: claimName: netbootxyz-assets-pvc