Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.38 KB | None | 0 0
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4.   name: {{ .Chart.Name }}
  5.   labels:
  6.     chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  7. spec:
  8.   replicas: {{ .Values.replicaCount }}
  9.   template:
  10.     metadata:
  11.       labels:
  12.         app: {{ .Chart.Name }}
  13.     spec:
  14.       volumes:
  15.       - name: config
  16.         configMap:
  17.           name: {{ template "fullname" . }}
  18.       containers:
  19.       - name: {{ .Chart.Name }}
  20.         image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
  21.         imagePullPolicy: {{ .Values.image.pullPolicy }}
  22.         args:
  23.        - "--config=/etc/chihaya/config.yaml"
  24.         - "--debug"
  25.         - "--json"
  26.         ports:
  27.         - name: bittorrent-http
  28.           containerPort: {{ $v := .Values.config.chihaya.http.addr | split ":" }}{{ $v._1 }}
  29.           protocol: TCP
  30.         - name: bittorrent-udp
  31.           containerPort: {{ $v := .Values.config.chihaya.udp.addr | split ":" }}{{ $v._1 }}
  32.           protocol: UDP
  33.         - name: metrics
  34.           containerPort: {{ $v := .Values.config.chihaya.prometheus_addr | split ":" }}{{ $v._1 }}
  35.         livenessProbe:
  36.           httpGet:
  37.             path: /
  38.             port: {{ $v := .Values.config.chihaya.prometheus_addr | split ":" }}{{ $v._1 }}
  39.         volumeMounts:
  40.         - name: config
  41.           mountPath: /etc/chihaya
  42.         resources:
  43. {{ toYaml .Values.resources | indent 10 }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement