52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
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
|
|
env:
|
|
- name: RUST_LOG
|
|
value: info,status_server=debug
|
|
volumeMounts:
|
|
- mountPath: /usr/local/share/20125.home/config.yml
|
|
name: config
|
|
subPath: config.yml
|
|
readOnly: True
|
|
nodeSelector:
|
|
kubernetes.io/arch: amd64
|
|
imagePullSecrets:
|
|
- name: imagepull-gitea
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: 20125-config
|