Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- name: {{ .Chart.Name }}
- labels:
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- spec:
- replicas: {{ .Values.replicaCount }}
- template:
- metadata:
- labels:
- app: {{ .Chart.Name }}
- spec:
- volumes:
- - name: config
- configMap:
- name: {{ template "fullname" . }}
- containers:
- - name: {{ .Chart.Name }}
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- args:
- - "--config=/etc/chihaya/config.yaml"
- - "--debug"
- - "--json"
- ports:
- - name: bittorrent-http
- containerPort: {{ $v := .Values.config.chihaya.http.addr | split ":" }}{{ $v._1 }}
- protocol: TCP
- - name: bittorrent-udp
- containerPort: {{ $v := .Values.config.chihaya.udp.addr | split ":" }}{{ $v._1 }}
- protocol: UDP
- - name: metrics
- containerPort: {{ $v := .Values.config.chihaya.prometheus_addr | split ":" }}{{ $v._1 }}
- livenessProbe:
- httpGet:
- path: /
- port: {{ $v := .Values.config.chihaya.prometheus_addr | split ":" }}{{ $v._1 }}
- volumeMounts:
- - name: config
- mountPath: /etc/chihaya
- resources:
- {{ toYaml .Values.resources | indent 10 }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement