You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.2 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
name: sapiantools
labels:
k8s-app: sapiantools
spec:
replicas: 1
selector:
matchLabels:
k8s-app: sapiantools
template:
metadata:
labels:
k8s-app: sapiantools
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: sapian-agent-role
operator: In
values:
- foreman
containers:
- name: sapiantools
image: quay.io/sapian/sapiantools:latest
imagePullPolicy: Always
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 60; done;" ]
resources:
limits:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: mediawiki-rwo
mountPath: /mediawiki-rwo
# - name: prometheus
# mountPath: /prometheus
# - name: data-consul-dc-k8s-cur-consul-server-0
# mountPath: /data-consul-dc-k8s-cur-consul-server-0
# - name: data-consul-dc-k8s-cur-consul-server-1
# mountPath: /data-consul-dc-k8s-cur-consul-server-1
# - name: data-consul-dc-k8s-cur-consul-server-2
# mountPath: /data-consul-dc-k8s-cur-consul-server-2
volumes:
- name: mediawiki-rwo
persistentVolumeClaim:
claimName: mediawiki-rwo
readOnly: false
# - name: prometheus
# persistentVolumeClaim:
# claimName: prometheus-kps-kube-prometheus-stack-prometheus-db-prometheus-kps-kube-prometheus-stack-prometheus-0
# readOnly: false
# - name: data-consul-dc-k8s-cur-consul-server-0
# persistentVolumeClaim:
# claimName: data-consul-dc-k8s-cur-consul-server-0
# readOnly: false
# - name: data-consul-dc-k8s-cur-consul-server-1
# persistentVolumeClaim:
# claimName: data-consul-dc-k8s-cur-consul-server-1
# readOnly: false
# - name: data-consul-dc-k8s-cur-consul-server-2
# persistentVolumeClaim:
# claimName: data-consul-dc-k8s-cur-consul-server-2
# readOnly: false