- Added RAM and CPU resource display in the zero-scale dashboard for active applications. - Implemented dynamic updates for resource display based on application state. feat: expand zero-scale control script with new commands and options - Introduced `apply`, `upload-binary`, and `provision-db` commands to the zero-scale control script. - Added options for specifying configuration files, binary uploads, and database provisioning parameters. feat: implement temporal JWKS aggregator service - Created a new service to aggregate JWKS from Gitea and Kubernetes API. - Implemented caching and refresh logic for JWKS keys. feat: deploy shared MySQL and Redis services - Added Kubernetes manifests for shared MySQL and Redis services, including StatefulSet and ConfigMap definitions. - Configured persistent storage and resource limits for MySQL and Redis deployments. feat: add temporal OAuth secret example and values configuration - Created example secret manifest for OAuth credentials required by Temporal. - Added a values file for configuring Temporal server with JWKS integration and resource limits. feat: implement Kubernetes token provider for Temporal client - Developed a K8sTokenHeadersProvider to supply Kubernetes service account tokens to Temporal. - Added tests for token retrieval and environment variable fallback.
294 lines
6.3 KiB
CSS
294 lines
6.3 KiB
CSS
/* Progress Bar */
|
|
.progress-bg {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: rgba(255,255,255,0.08);
|
|
border-radius: 3px;
|
|
margin-top: 8px;
|
|
overflow: hidden;
|
|
}
|
|
.progress-fill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
background: var(--fill-color, var(--blue));
|
|
transition: width 0.4s ease;
|
|
}
|
|
|
|
/* Status Badges */
|
|
.status-badge {
|
|
font-size: 11px;
|
|
padding: 3px 8px;
|
|
border-radius: 12px;
|
|
font-weight: 600;
|
|
}
|
|
.status-badge.ready { background: var(--green-glow); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
|
|
.status-badge.notready { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
|
|
.status-badge.active { background: var(--green-glow); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
|
|
.status-badge.idle { background: var(--amber-glow); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
|
|
|
|
/* Loading Placeholder */
|
|
.loading-placeholder {
|
|
grid-column: 1 / -1;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
padding: 16px 4px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Node RAM Breakdown & Top Consumers */
|
|
.node-ram-breakdown {
|
|
margin-top: 12px;
|
|
padding: 10px 12px;
|
|
background: rgba(15, 23, 42, 0.65);
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
.ram-breakdown-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 11.5px;
|
|
}
|
|
.ram-sub-title {
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.ram-sub-val {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-weight: 600;
|
|
color: #e2e8f0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.ram-sub-val.highlight-green {
|
|
color: var(--green);
|
|
}
|
|
.ram-sub-val.highlight-blue {
|
|
color: var(--blue);
|
|
}
|
|
.ram-sub-val.highlight-red {
|
|
color: var(--red);
|
|
}
|
|
.ram-pct-badge {
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
border-radius: 10px;
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: var(--green);
|
|
border: 1px solid rgba(34, 197, 94, 0.25);
|
|
}
|
|
.node-services-section,
|
|
.node-hogs-section {
|
|
margin-top: 6px;
|
|
padding-top: 6px;
|
|
border-top: 1px dashed rgba(255, 255, 255, 0.08);
|
|
}
|
|
.node-services-header,
|
|
.node-hogs-header {
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-muted);
|
|
margin-bottom: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.node-services-header.zero-header {
|
|
color: var(--green);
|
|
}
|
|
.node-services-header.supporting-header {
|
|
color: var(--blue);
|
|
}
|
|
.node-services-header.nonzero-header {
|
|
color: var(--red);
|
|
}
|
|
.section-total-ram {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
}
|
|
.section-total-ram.zero-total {
|
|
color: var(--green);
|
|
}
|
|
.section-total-ram.supporting-total {
|
|
color: var(--blue);
|
|
}
|
|
.section-total-ram.legacy-total {
|
|
color: var(--red);
|
|
}
|
|
.node-services-list,
|
|
.node-hogs-list,
|
|
.node-supporting-list,
|
|
.node-legacy-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 4px 6px;
|
|
}
|
|
|
|
/* Zero-Scale Supporting Infrastructure (Blue) */
|
|
.supporting-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
min-width: 0;
|
|
gap: 4px;
|
|
font-size: 10px;
|
|
background: rgba(56, 189, 248, 0.08);
|
|
border: 1px solid rgba(56, 189, 248, 0.25);
|
|
padding: 3px 6px;
|
|
border-radius: 4px;
|
|
color: #bae6fd;
|
|
transition: all 0.15s ease;
|
|
}
|
|
.supporting-pill:hover {
|
|
border-color: rgba(56, 189, 248, 0.6);
|
|
background: rgba(56, 189, 248, 0.15);
|
|
}
|
|
.supporting-name {
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.supporting-ram {
|
|
color: #38bdf8;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 9.5px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
/* Non-Zero-Scale Services (Red) */
|
|
.non-zero-pill,
|
|
.hog-pill,
|
|
.legacy-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
min-width: 0;
|
|
gap: 4px;
|
|
font-size: 10px;
|
|
background: rgba(239, 68, 68, 0.08);
|
|
border: 1px solid rgba(239, 68, 68, 0.25);
|
|
padding: 3px 6px;
|
|
border-radius: 4px;
|
|
color: #fca5a5;
|
|
transition: all 0.15s ease;
|
|
}
|
|
.non-zero-pill:hover,
|
|
.hog-pill:hover,
|
|
.legacy-pill:hover {
|
|
border-color: rgba(239, 68, 68, 0.6);
|
|
background: rgba(239, 68, 68, 0.15);
|
|
}
|
|
.non-zero-name {
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.non-zero-ram,
|
|
.hog-ram {
|
|
color: var(--red);
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 9.5px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
/* 0-Scale Services (Green) */
|
|
.zero-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
min-width: 0;
|
|
gap: 4px;
|
|
font-size: 10px;
|
|
background: rgba(34, 197, 94, 0.08);
|
|
border: 1px solid rgba(34, 197, 94, 0.25);
|
|
padding: 3px 6px;
|
|
border-radius: 4px;
|
|
color: #86efac;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
.zero-pill:hover {
|
|
border-color: rgba(34, 197, 94, 0.55);
|
|
background: rgba(34, 197, 94, 0.15);
|
|
}
|
|
.zero-pill.idle {
|
|
color: #94a3b8;
|
|
border-color: rgba(34, 197, 94, 0.2);
|
|
background: rgba(15, 23, 42, 0.7);
|
|
}
|
|
.zero-pill.idle:hover {
|
|
color: #cbd5e1;
|
|
border-color: rgba(34, 197, 94, 0.45);
|
|
}
|
|
.zero-pill.active {
|
|
color: #86efac;
|
|
border-color: rgba(34, 197, 94, 0.5);
|
|
background: rgba(34, 197, 94, 0.15);
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
|
|
}
|
|
.zero-pill-dot {
|
|
font-size: 10px;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
}
|
|
.zero-pill-name {
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.zero-pill-ram {
|
|
color: var(--green);
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 9.5px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
/* Zero-Scale Notice Banner */
|
|
.zero-scale-notice {
|
|
background: rgba(56, 189, 248, 0.07);
|
|
border: 1px solid rgba(56, 189, 248, 0.25);
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
margin-bottom: 18px;
|
|
font-size: 12.5px;
|
|
color: #bae6fd;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|