Project

General

Profile

Actions

pod_template_conf #28501

open

progof_and_ccf_pod_ai

Added by UserName LastName over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
06/18/2024
Due date:
Estimated time:
name:
progof_and_ccf_pod_ai
pod_volumes:

- persistentVolumeClaim:
claimName: jenkins-slave-pvc-workspace
readOnly: false
name: jenkins-agent-pvc
- hostPath:
path: /opt/bin/
name: kube-bin

pod_contains:

- name: parser
image: "hub.ceshiren.com/office/code_parser:v1.4"
args:
- infinity
command:
- sleep
volumeMounts:
- mountPath: "/home/jenkins/agent"
name: "jenkins-agent-pvc"
readOnly: false
workingDir: "/home/jenkins/agent"
- name: ai-rule-runner
image: "hub.ceshiren.com/office/ai_rule_runner:v1.6"
env:
- name: OPENAI_API_BASE
value: https://apitoken.ceba.ceshiren.com/openai/v1/
- name: OPENAI_API_KEY
value: 3da6c1b52f4035e6183cc714ed627041
args:
- infinity
command:
- sleep
volumeMounts:
- mountPath: "/home/jenkins/agent"
name: "jenkins-agent-pvc"
readOnly: false
- name: submit-result
image: "hub.ceshiren.com/office/submit_result:v1.1"
args:
- infinity
command:
- sleep
volumeMounts:
- mountPath: "/home/jenkins/agent"
name: "jenkins-agent-pvc"
readOnly: false
- name: "jnlp"
image: "hub.ceshiren.com/office/inbound-agent:3248.v65ecb_254c298-2"
args: [ '\$(JENKINS_SECRET)', '\$(JENKINS_NAME)' ]
resources:
requests:
memory: "100Mi"
cpu: "20m"
volumeMounts:
- mountPath: "/home/jenkins/agent"
name: "jenkins-agent-pvc"
readOnly: false

pod_environments:

- ALLURE_HOME='/root/allure-command'
- PATH="${ALLURE_HOME}:${PATH}"

pod_run_stages:

- stage_name: parser
container_name: parser
steps:
- "def type = params.type ?: '\\${type}'"
- "def code_url = params.code_url ?: '\\${code_url}'"
- "def user_id = params.user_id ?: '\\${user_id}'"
- "def extra_data = params.extra_data ?: '\\${extra_data}'"
- "def grading_rules = params.grading_rules ?: '\\${grading_rules}'"
- sh "code_parser -t '${type}' -c '${code_url}' -u '${user_id}' -e '${extra_data}' -rule '${grading_rules}' "
- stage_name: run
container_name: ai-rule-runner
steps:
- sh "review-score -c '${WORKSPACE}/parser_result.yaml' -o '${WORKSPACE}/ai_run_result.yaml' "
- stage_name: submit-result
container_name: submit-result
steps:
- "def hook_url = params.hook_url ?: '\\${hook_url}'"
- sh "result_submit -hu '${hook_url}' -r '${WORKSPACE}/ai_run_result.yaml' "

pod_post_stages:
pod_node_name:
pod_metadata:

labels:
some-label: some-label-value

imagePullSecrets:

- name: harbor

pod_collect_log_stages:
tolerations:

- key: "category"
operator: "Equal"
value: "performance"
effect: "NoSchedule"

nodeSelector:

category: performance

Actions #1

Updated by UserName LastName over 1 year ago

  • name set to progof_and_ccf_pod_ai
  • pod_contains updated (diff)
  • pod_environments updated (diff)
  • pod_run_stages updated (diff)
  • pod_metadata updated (diff)
  • imagePullSecrets updated (diff)
Actions #2

Updated by UserName LastName over 1 year ago

  • tolerations updated (diff)
  • nodeSelector updated (diff)
Actions

Also available in: Atom PDF