{{t "servicePage.header" name=service.displayName}}

{{badge-state model=service}} {{action-menu model=service showPrimary=false classNames="ml-10 pull-right" size="sm" }}
{{#if service.description}} {{banner-message color="bg-secondary mb-0 mt-10" message=(linkify service.description) }} {{/if}} {{#if service.showTransitioningMessage}}

{{uc-first service.transitioningMessage}}

{{/if}} {{#accordion-list as |al expandFn|}} {{accordion-pod pods=service.pods expandAll=al.expandAll expandFn=expandFn }} {{#if scope.currentCluster.isMonitoringReady}} {{#metrics-summary expandAll=al.expandAll expandFn=expandFn grafanaUrl=service.grafanaUrl title=(t "metricsAction.sections.workload") }} {{workload-metrics resourceId=service.id}} {{/metrics-summary}} {{/if}} {{resource-event-list resourceType=service.displayType expandAll=al.expandAll expandFn=expandFn namespaceId=service.namespaceId name=service.name kind=service.type }} {{#if (or (eq service.type "job") (eq service.type "cronJob"))}} {{container/form-job-config workload=service scaleMode=service.type editing=false expandAll=al.expandAll expandFn=expandFn }} {{/if}} {{#if service.canHaveEnvironment}} {{#accordion-list-item title=(t "formEnvVar.title") detail=(t "formEnvVar.detail") expandAll=al.expandAll expand=(action expandFn) }} {{form-env-var model=displayEnvironmentVars }}
{{container/form-sources namespace=service.namespace sources=launchConfig.environmentFrom editing=false }} {{/accordion-list-item}} {{/if}} {{#accordion-list-item title=(t "containerPage.portsTab.header") detail=(t "containerPage.portsTab.detail") expandAll=al.expandAll expand=(action expandFn) }} {{container/form-ports initialPorts=service.launchConfig.ports editing=false }} {{/accordion-list-item}} {{container/form-scheduling initialHostId=model.workload.scheduling.node.nodeId service=service scheduling=service.scheduling editing=false expandAll=al.expandAll expandFn=expandFn classNames="accordion" }} {{#if service.canHaveHealthCheck}} {{#accordion-list-item title=(t "formHealthCheck.title") detail=(t "formHealthCheck.detail") expandAll=al.expandAll expand=(action expandFn) }}
{{#if service.launchConfig.livenessProbe}} {{/if}}
{{form-healthcheck initialCheck=service.launchConfig.readinessProbe editing=false }}
{{#if service.launchConfig.livenessProbe}}
{{form-healthcheck initialCheck=service.launchConfig.livenessProbe editing=false isLiveness=true }}
{{/if}}
{{/accordion-list-item}} {{/if}} {{container/form-upgrade workload=service scaleMode=service.type editing=false expandAll=al.expandAll expandFn=expandFn }} {{container/form-volumes launchConfig=launchConfig workload=service namespace=service.namespace loggingEnabled=true editing=false expandAll=al.expandAll expandFn=expandFn }} {{container/form-command tagName="" instance=launchConfig service=model.workload initialLabels=launchConfig.labels editing=false expandAll=al.expandAll expandFn=expandFn }} {{container/form-networking classNames="accordion-wrapper" instance=launchConfig service=service editing=false expandAll=al.expandAll expandFn=expandFn }} {{form-labels-annotations classNames="accordion-wrapper" model=service editing=false expandAll=al.expandAll expandFn=expandFn }} {{#if service.canChangeSecurity}} {{container/form-security instance=launchConfig editing=false expandAll=al.expandAll expandFn=expandFn }} {{/if}} {{#if (or (and scope.currentProject.isSystemProject scope.currentCluster.enableClusterMonitoring) scope.currentProject.enableProjectMonitoring)}} {{container/form-custom-metrics classNames="accordion-wrapper" workload=service editing=false expandAll=al.expandAll expandFn=expandFn }} {{/if}} {{/accordion-list}}