apiVersion: v1 kind: Service metadata: labels: &labels app.kubernetes.io/name: status-server app.kubernetes.io/component: status-server name: status-server spec: ports: - port: 80 protocol: TCP targetPort: 20125 selector: *labels type: ClusterIP --- apiVersion: apps/v1 kind: Deployment metadata: labels: &labels app.kubernetes.io/name: status-server app.kubernetes.io/component: status-server name: status-server spec: replicas: 1 selector: matchLabels: *labels template: metadata: labels: *labels spec: containers: - name: status-server image: git.pyrocufflink.net/packages/20125.home imagePullPolicy: Always volumeMounts: - mountPath: /usr/local/share/20125.home/config.yml name: config subPath: config.yml readOnly: True imagePullSecrets: - name: imagepull-gitea volumes: - name: config configMap: name: 20125-config