77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: quobyte-api
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: quobyte-api # has to match .spec.template.metadata.labels
|
||
|
replicas: {{ .Values.quobyte.replicas }} # by default is 4
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: quobyte-api # has to match .spec.selector.matchLabels
|
||
|
annotations:
|
||
|
timestamp: "{{ now }}"
|
||
|
spec:
|
||
|
terminationGracePeriodSeconds: 10
|
||
|
hostNetwork: true
|
||
|
dnsPolicy: ClusterFirstWithHostNet
|
||
|
containers:
|
||
|
- name: quobyte-api
|
||
|
image: {{ .Values.quobyte.image }}
|
||
|
imagePullPolicy: Always
|
||
|
env:
|
||
|
- name: NODENAME
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.name
|
||
|
- name: MY_POD_IP
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: status.podIP
|
||
|
- name: HOST_IP
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: status.podIP
|
||
|
- name: QUOBYTE_DATA_PORT
|
||
|
value: "7863"
|
||
|
- name: QUOBYTE_META_PORT
|
||
|
value: "7862"
|
||
|
- name: QUOBYTE_REG_PORT
|
||
|
value: "7861"
|
||
|
- name: QUOBYTE_API_PORT
|
||
|
value: "7860"
|
||
|
- name: QUOBYTE_S3_PORT
|
||
|
value: "8484"
|
||
|
- name: CLOUD_INSTALL
|
||
|
value: "1"
|
||
|
- name: QUOBYTE_SERVICE
|
||
|
value: api
|
||
|
- name: QUOBYTE_REGISTRY
|
||
|
value: _quobyte._tcp.quobyte.{{ .Release.Namespace }}.svc.cluster.local
|
||
|
- name: CLUSTER_NS
|
||
|
value: {{ .Release.Namespace }}
|
||
|
- name: LIMIT_OPEN_FILES
|
||
|
value: "{{ .Values.quobyte.maxopenfiles }}"
|
||
|
- name: LIMIT_MAX_PROCESSES
|
||
|
value: "{{ .Values.quobyte.maxprocs }}"
|
||
|
ports:
|
||
|
- containerPort: 7860
|
||
|
name: quobyteapi
|
||
|
{{- if .Values.nodepoolname }}
|
||
|
nodeSelector:
|
||
|
storage-node-pool: {{ .Values.nodepoolname }}
|
||
|
{{- end }}
|
||
|
affinity:
|
||
|
podAntiAffinity:
|
||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
- labelSelector:
|
||
|
matchExpressions:
|
||
|
- key: app
|
||
|
operator: In
|
||
|
values:
|
||
|
- quobyte
|
||
|
topologyKey: "kubernetes.io/hostname"
|