# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

K8S_API_VERSION_V1 = 'v1'
K8S_API_VERSION_V1_BETA1 = 'extensions/v1beta1'
K8S_PERSISTENT_VOLUME_KIND = 'PersistentVolume'
K8S_PERSISTENT_VOLUME_CLAIM_KIND = 'PersistentVolumeClaim'
K8S_CONFIG_MAP_KIND = 'ConfigMap'
K8S_POD_KIND = 'Pod'
K8S_POD_TEMPLATE_KIND = 'PodTemplate'
K8S_DEPLOYMENT_KIND = 'Deployment'
K8S_SERVICE_KIND = 'Service'
DOCKER_IMAGE = 'plx:v1'
ENV_VAR_TEMPLATE = '{name: "{var_name}", value: "{var_value}"}'
DATA_VOLUME = 'data'
LOGS_VOLUME = 'logs'
TMP_VOLUME = 'tmp'
POLYAXON_FILES_VOLUME = 'plxfiles'
VOLUME_NAME = 'pv-{vol_name}'
VOLUME_CLAIM_NAME = 'pvc-{vol_name}'
GPU_RESOURCES = '{alpha.kubernetes.io/nvidia-gpu: {}'
CONFIG_MAP_CLUSTER_NAME = '{project}-xp{experiment}-cluster'
CONFIG_MAP_CLUSTER_KEY_NAME = 'CM_{project}_xp{experiment}_cluster_{task_type}'
TASK_NAME = '{project}-xp{experiment}-{task_type}{task_id}'
TASK_LABELS = ('project: "{project}", '
               'experiment: "{experiment}", '
               'task_type: "{task_type}", '
               'task_id: "{task_id}", '
               'task: "{task_name}"')
POD_CONTAINER_TASK_NAME = '{project}-xp{experiment}-{task_type}{task_id}'
POD_CONTAINER_PROJECT_NAME = '{project}-{name}'
DEPLOYMENT_NAME = '{project}-{name}'
DEFAULT_PORT = 2222

# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

K8S_API_VERSION_V1 = 'v1'
K8S_API_VERSION_V1_BETA1 = 'extensions/v1beta1'
K8S_PERSISTENT_VOLUME_KIND = 'PersistentVolume'
K8S_PERSISTENT_VOLUME_CLAIM_KIND = 'PersistentVolumeClaim'
K8S_CONFIG_MAP_KIND = 'ConfigMap'
K8S_POD_KIND = 'Pod'
K8S_POD_TEMPLATE_KIND = 'PodTemplate'
K8S_DEPLOYMENT_KIND = 'Deployment'
K8S_SERVICE_KIND = 'Service'
DOCKER_IMAGE = 'polyaxon/polyaxon:lib-cpu-3-121'
ENV_VAR_TEMPLATE = '{name: "{var_name}", value: "{var_value}"}'
DATA_VOLUME = 'data'
LOGS_VOLUME = 'logs'
TMP_VOLUME = 'tmp'
POLYAXON_FILES_VOLUME = 'plxfiles'
VOLUME_NAME = 'pv-{vol_name}'
VOLUME_CLAIM_NAME = 'pvc-{vol_name}'
GPU_RESOURCES = '{alpha.kubernetes.io/nvidia-gpu: {}'
CONFIG_MAP_CLUSTER_NAME = '{project}-xp{experiment}-cluster'
CONFIG_MAP_CLUSTER_KEY_NAME = 'CM_{project}_xp{experiment}_cluster_{task_type}'
TASK_NAME = '{project}-xp{experiment}-{task_type}{task_id}'
TASK_LABELS = ('project: "{project}", '
               'experiment: "{experiment}", '
               'task_type: "{task_type}", '
               'task_id: "{task_id}", '
               'task: "{task_name}"')
POD_CONTAINER_TASK_NAME = '{project}-xp{experiment}-{task_type}{task_id}'
POD_CONTAINER_PROJECT_NAME = '{project}-{name}'
DEPLOYMENT_NAME = '{project}-{name}'
DEFAULT_PORT = 2222

Update default docker image