daily pastebin goal
13%
SHARE
TWEET

pod2

a guest Jan 18th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Запуск кастомного Пода в K8S:
  2.  
  3. kind: Pod
  4. apiVersion: v1
  5. metadata:
  6.   name: phobia-master-custom
  7.   namespace: teamcity
  8. spec:
  9.   volumes:
  10.   - name: artifacts
  11.     persistentVolumeClaim:
  12.       claimName: teamcity-artifacts
  13.   - name: static
  14.     persistentVolumeClaim:
  15.       claimName: master-static
  16.   - name: yandex
  17.     secret:
  18.       secretName: yandex-money
  19.       items:
  20.       - key: yandex.cer
  21.         path: yandex.cer
  22.       - key: yandex.key
  23.         path: yandex.key
  24.   containers:
  25.   - name: custom
  26.     image: hub.claustrophobia.com/phobia/python:40 # - актуальный билд (смотреть в подах активных)
  27.     command: # команды которые надо запустить
  28.     - python
  29.     args:
  30.    - manage.py
  31.     - es_games_index
  32.     - "--from"
  33.     - "01.01.2014"
  34.     workingDir: "/volumes/artifacts/Phobia/app/784/app" # актуальная версия деплоймента
  35.     env:
  36.     - name: REDIS_HOST
  37.       value: phobia-master-redis-master
  38.     - name: REDIS_PORT
  39.       value: '6379'
  40.     - name: BRANCH
  41.       value: master
  42.     - name: VERSION
  43.       value: master-179
  44.     - name: RAVEN_DSN
  45.       value: http://d70ed64722b3495ab4f51738b0631edd:ed2062ddb18d443ba4c47f1c8b8d48ee@sentry.sentry:9000/2
  46.     - name: ALLOWED_HOSTS
  47.       value: "*"
  48.     - name: BASE_DOMAIN
  49.       value: claustrophobia.com
  50.     - name: BERLIN_EMAIL_HOST_PASSWORD
  51.       value: Phobia2015
  52.     - name: COM_EMAIL_HOST_PASSWORD
  53.       value: yP54F9PW
  54.     - name: CSRF_COOKIE_NAME
  55.       value: phobia_csrf_token
  56.     - name: ELASTICSEARCH_URL
  57.       value: http://elasticsearch-efk-cluster.logging:9200
  58.     - name: EMAIL_AMSTERDAM_PASSWORD
  59.       value: q7w8e9r
  60.     - name: EMAIL_BERLIN_PASSWORD
  61.       value: a4s5d6f
  62.     - name: EMAIL_DEFAULT_PASSWORD
  63.       value: yP54F9PV
  64.     - name: EMAIL_HOST_PASSWORD
  65.       value: yP54F9PV
  66.     - name: GREEN_SMS_PASSWORD
  67.       value: phobia
  68.     - name: GREEN_SMS_PASSWORD2
  69.       value: Hwj21jai
  70.     - name: GREEN_SMS_API3_LOGIN_NORMAL
  71.       value: phobia3
  72.     - name: GREEN_SMS_API3_LOGIN_HIGH
  73.       value: phobia
  74.     - name: GREEN_SMS_API3_LOGIN_MSK2048
  75.       value: MSK2048
  76.     - name: GREEN_SMS_API3_PASSWORD_NORMAL
  77.       value: Hwj21jai
  78.     - name: GREEN_SMS_API3_PASSWORD_HIGH
  79.       value: Hwj21jai
  80.     - name: GREEN_SMS_API3_PASSWORD_MSK2048
  81.       value: Jwk1Woj192
  82.     - name: MOLLIE_API_KEY
  83.       value: live_5iwkKzhhJ6k89xeTPTTcKZceyz7CRj
  84.     - name: NL_EMAIL_HOST_PASSWORD
  85.     - name: POSTGRES_DATABASE
  86.       value: phobia
  87.     - name: POSTGRES_HOST
  88.       value: rc1a-7vduf7y3ww82jfc5.mdb.yandexcloud.net
  89.     - name: POSTGRES_PASSWORD
  90.       value: BdYsEfmKz6BP8a8k
  91.     - name: POSTGRES_PORT
  92.       value: '6432'
  93.     - name: POSTGRES_USER
  94.       value: phobia
  95.     - name: POSTGRES_SSL
  96.       value: 'True'
  97.     - name: SECRET_KEY
  98.       value: mh_pzgdd9#a!&dg@(w!%)-csz!vfu997idu1jsxn9gtl%n06bo
  99.     - name: SERVER_PRIVATE_KEY_PATH
  100.       value: "/opt/project/secrets/yandex.key"
  101.     - name: SESSION_COOKIE_NAME
  102.       value: phobia_sid
  103.     - name: STORE_YM_SECRETKEY
  104.       value: o+c*qg)996ybjbwb7cg^
  105.     - name: US_EMAIL_HOST_PASSWORD
  106.     - name: REDIRECT_TO_SSL
  107.       value: '1'
  108.     - name: LOGSTASH_HOST
  109.       value: logstash.logging
  110.     - name: LOGSTASH_PORT
  111.       value: '5045'
  112.     - name: YM_CERTIFICATE_PATH
  113.       value: "/secrets/yandex.cer"
  114.     - name: SERVER_PRIVATE_KEY_PATH
  115.       value: "/secrets/yandex.key"
  116.     - name: VK_APP_CLIENT_ID
  117.       value: '6628481'
  118.     - name: VK_APP_CLIENT_SECRET
  119.       value: EUG3BlLbOmpwlPrXaeKz
  120.     - name: AWS_ACCESS_KEY_ID
  121.       value: AKIAIDFETEL5ICY6U2NA
  122.     - name: AWS_SECRET_ACCESS_KEY
  123.       value: GzJtR6kv6lyX2mf+YdeUPbVtF1X+wfGkpAxfbd0c
  124.     - name: HTTPS
  125.       value: 'on'
  126.     - name: MAXMIND_DB_FN
  127.       value: "/maxmind_db/GeoLite2-City.mmdb"
  128.     - name: IS_PRODUCTION_ENVIRONMENT
  129.       value: 'True'
  130.     - name: PYTHONUNBUFFERED
  131.       value: 'TRUE'
  132.     - name: C_FORCE_ROOT
  133.       value: 'true'
  134.     volumeMounts:
  135.     - name: artifacts
  136.       mountPath: "/volumes/artifacts"
  137.     - name: static
  138.       mountPath: "/volumes/artifacts/Phobia/app/642/app/static"
  139.     - name: yandex
  140.       mountPath: "/secrets"
  141.     imagePullPolicy: IfNotPresent
  142.   restartPolicy: Never
  143.   nodeSelector:
  144.     app: ci
  145.   imagePullSecrets:
  146.   - name: regcred
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top