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.5 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: kubernetes.io/hostname
# operator: In
# values:
# - juju-9f1c47-k8s-73
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: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0
mountPath: /prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0
# - 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: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0
persistentVolumeClaim:
claimName: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0
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