|
| 1 | +{ |
| 2 | + "apiVersion": "apps/v1", |
| 3 | + "kind": "StatefulSet", |
| 4 | + "metadata": { |
| 5 | + "creationTimestamp": "2022-10-05T20:38:31Z", |
| 6 | + "generation": 17, |
| 7 | + "labels": { |
| 8 | + "kustomize.toolkit.fluxcd.io/name": "kube-manifests-opencost", |
| 9 | + "kustomize.toolkit.fluxcd.io/namespace": "opencost", |
| 10 | + "tanka.dev/environment": "85ead74422d749cb54711e74c81bc5d6ed6da54e92b5fa69" |
| 11 | + }, |
| 12 | + "name": "opencost", |
| 13 | + "namespace": "opencost", |
| 14 | + "resourceVersion": "2386985939", |
| 15 | + "uid": "56495ef8-2650-46e8-9528-28759cf47151" |
| 16 | + }, |
| 17 | + "spec": { |
| 18 | + "podManagementPolicy": "OrderedReady", |
| 19 | + "replicas": 1, |
| 20 | + "revisionHistoryLimit": 10, |
| 21 | + "selector": { |
| 22 | + "matchLabels": { |
| 23 | + "name": "opencost" |
| 24 | + } |
| 25 | + }, |
| 26 | + "serviceName": "opencost", |
| 27 | + "template": { |
| 28 | + "metadata": { |
| 29 | + "creationTimestamp": null, |
| 30 | + "labels": { |
| 31 | + "name": "opencost" |
| 32 | + } |
| 33 | + }, |
| 34 | + "spec": { |
| 35 | + "affinity": { |
| 36 | + "nodeAffinity": { |
| 37 | + "preferredDuringSchedulingIgnoredDuringExecution": [ |
| 38 | + { |
| 39 | + "preference": { |
| 40 | + "matchExpressions": [ |
| 41 | + { |
| 42 | + "key": "cloud.google.com/gke-spot", |
| 43 | + "operator": "In", |
| 44 | + "values": [ |
| 45 | + "true" |
| 46 | + ] |
| 47 | + } |
| 48 | + ] |
| 49 | + }, |
| 50 | + "weight": 100 |
| 51 | + } |
| 52 | + ] |
| 53 | + } |
| 54 | + }, |
| 55 | + "containers": [ |
| 56 | + { |
| 57 | + "env": [ |
| 58 | + ], |
| 59 | + "image": "quay.io/kubecost1/kubecost-cost-model:prod-1.100.0", |
| 60 | + "imagePullPolicy": "IfNotPresent", |
| 61 | + "name": "opencost", |
| 62 | + "ports": [ |
| 63 | + { |
| 64 | + "containerPort": 9003, |
| 65 | + "name": "http-metrics", |
| 66 | + "protocol": "TCP" |
| 67 | + } |
| 68 | + ], |
| 69 | + "resources": { |
| 70 | + "limits": { |
| 71 | + "cpu": "4", |
| 72 | + "memory": "8Gi" |
| 73 | + }, |
| 74 | + "requests": { |
| 75 | + "cpu": "1", |
| 76 | + "memory": "4Gi" |
| 77 | + } |
| 78 | + }, |
| 79 | + "terminationMessagePath": "/dev/termination-log", |
| 80 | + "terminationMessagePolicy": "File", |
| 81 | + "volumeMounts": [ |
| 82 | + { |
| 83 | + "mountPath": "/var/configs", |
| 84 | + "name": "opencost-data" |
| 85 | + } |
| 86 | + ] |
| 87 | + } |
| 88 | + ], |
| 89 | + "dnsPolicy": "ClusterFirst", |
| 90 | + "restartPolicy": "Always", |
| 91 | + "schedulerName": "default-scheduler", |
| 92 | + "securityContext": { |
| 93 | + "fsGroup": 10001 |
| 94 | + }, |
| 95 | + "serviceAccount": "opencost", |
| 96 | + "serviceAccountName": "opencost", |
| 97 | + "terminationGracePeriodSeconds": 30, |
| 98 | + "tolerations": [ |
| 99 | + { |
| 100 | + "effect": "NoSchedule", |
| 101 | + "key": "type", |
| 102 | + "operator": "Equal", |
| 103 | + "value": "spot-node" |
| 104 | + } |
| 105 | + ] |
| 106 | + } |
| 107 | + }, |
| 108 | + "updateStrategy": { |
| 109 | + "type": "RollingUpdate" |
| 110 | + }, |
| 111 | + "volumeClaimTemplates": [ |
| 112 | + { |
| 113 | + "apiVersion": "v1", |
| 114 | + "kind": "PersistentVolumeClaim", |
| 115 | + "metadata": { |
| 116 | + "creationTimestamp": null, |
| 117 | + "name": "opencost-data" |
| 118 | + }, |
| 119 | + "spec": { |
| 120 | + "accessModes": [ |
| 121 | + "ReadWriteOnce" |
| 122 | + ], |
| 123 | + "resources": { |
| 124 | + "requests": { |
| 125 | + "storage": "320Gi" |
| 126 | + } |
| 127 | + }, |
| 128 | + "volumeMode": "Filesystem" |
| 129 | + }, |
| 130 | + "status": { |
| 131 | + "phase": "Pending" |
| 132 | + } |
| 133 | + } |
| 134 | + ] |
| 135 | + }, |
| 136 | + "status": { |
| 137 | + "availableReplicas": 1, |
| 138 | + "collisionCount": 0, |
| 139 | + "currentReplicas": 1, |
| 140 | + "currentRevision": "opencost-6666f8bdb7", |
| 141 | + "observedGeneration": 17, |
| 142 | + "readyReplicas": 1, |
| 143 | + "replicas": 1, |
| 144 | + "updateRevision": "opencost-6666f8bdb7", |
| 145 | + "updatedReplicas": 1 |
| 146 | + } |
| 147 | +} |
0 commit comments