{{/* Containers page (/containers): managed containers with running/stopped filter chips and search. HTMX partial: block container_rows */}} {{ template "head" . }}
{{ template "drawer_toggle" }}
{{ template "page_progress" }}
{{ block "k8s_stats" . }} {{ if .Data.K8sError }} {{ template "error_alert" .Data.K8sError }} {{ else if .Data.K8s }}
{{ if .Data.K8s.cluster }}

Cluster

{{ if .Data.K8s.cluster.version }} {{ .Data.K8s.cluster.version }} {{ end }}
{{ if .Data.K8s.cluster.nodes_error }} node stats unavailable (needs cluster access) {{ else }} {{ .Data.K8s.cluster.ready_nodes }}/{{ .Data.K8s.cluster.nodes }} nodes ready {{ .Data.K8s.cluster.cpu }} cpu {{ .Data.K8s.cluster.memory }} memory {{ end }}
{{ end }} {{ range .Data.K8s.namespaces }}

{{ .namespace }}

{{ .kind }} namespace
{{ .pods }} pods {{ .running }} running {{ .ready }} ready {{ if .pending }} {{ .pending }} pending {{ end }} {{ if .failed }} {{ .failed }} failed {{ end }} {{ if .succeeded }} {{ .succeeded }} succeeded {{ end }}
{{ end }}
{{ end }} {{ end }}
{{ block "container_rows" . }}
{{ if and .Data.Perms (index .Data.Perms "feature:builder") }} {{ end }} {{ if eq .Data.Runtime "kubernetes" }} {{ end }}
{{ template "flash_alerts" .Data }} {{ if .Data.Containers }}
{{ range .Data.Containers }} {{ end }}
Details State Id Container App Actions
{{ template "drilldown_icon" }} {{ template "container_state" . }} {{ trunc 12 .id }} {{ .name }} {{ if .app_path }} {{ .app_path }} {{ if and .env (ne .env "prod") }} {{ .env }} {{ end }} {{ else }} - {{ end }}
{{ if ne .runtime "kubernetes" }} {{ if eq .state "running" }} {{ else }} {{ end }} {{ end }}
{{ else if not .Data.FlashError }}
{{ if .Data.Query }}

No containers match "{{ .Data.Query }}"

{{ else }} {{ if eq .Data.Filter "agent" }}

No agent containers are running

Agent containers start with a builder session and stop when it is idle or stopped

{{ else if eq .Data.Filter "kaniko" }}

No image builds are running

Kaniko pods run while a container app's image is being built and are cleaned up after

{{ else }}

No containers are being managed

Apps with a container spec start containers when they serve requests

{{ end }} {{ end }}
{{ end }} {{ end }}
{{ template "sidebar" . }}