Skip to content

Commit

Permalink
Merge pull request #208 from chipzoller/kubecost-202
Browse files Browse the repository at this point in the history
Bump Kubecost to v2.0.2
  • Loading branch information
mikemcd3912 authored Feb 8, 2024
2 parents 4571dc4 + c975023 commit 71cdf4e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eks-anywhere-common/Addons/Partner/Kubecost/kubecost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
kind: HelmRepository
name: kubecost-charts
namespace: flux-system
version: 1.106.0
version: 2.0.2
interval: 1m0s
targetNamespace: kubecost
valuesFrom:
Expand Down
16 changes: 15 additions & 1 deletion eks-anywhere-common/Testers/Kubecost/kubecost-testJob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,30 @@ spec:
spec:
template:
spec:
securityContext:
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
serviceAccountName: tester
containers:
- name: test-kubecost
image: alpine/k8s:1.26.9
securityContext:
privileged: false
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
command:
- /bin/sh
args:
- -c
- >-
svc=$(kubectl -n kubecost get svc -l app.kubernetes.io/name=cost-analyzer -o json | jq -r .items[0].metadata.name);
svc=$(kubectl get --raw /api/v1/namespaces/kubecost/services | jq -r '.items[] | select(.metadata.name | test("cost-analyzer$")).metadata.name');
echo Getting current Kubecost state.;
response=$(curl -sL http://${svc}:9090/model/getConfigs);
code=$(echo ${response} | jq .code);
Expand Down

0 comments on commit 71cdf4e

Please sign in to comment.