broad-zoo-34077
06/28/2023, 4:14 PMlittle-author-61621
little-author-61621
SELF_HOSTED_INFRACOST_API_KEY
var specified and the corresponding secret has the correct value?little-author-61621
SELF_HOSTED_INFRACOST_API_KEY
for the pod?ambitious-student-88371
06/28/2023, 5:19 PMSELF_HOSTED_INFRACOST_API_KEY
set with that value only.little-author-61621
ambitious-student-88371
06/28/2023, 5:26 PMcurl -i <http://localhost>:port/graphql
?
It still returns invalid Api Key similar output as before.little-author-61621
echo $SELF_HOSTED_INFRACOST_API_KEY
inside the pod?ambitious-student-88371
06/28/2023, 5:34 PMlittle-author-61621
existingSecretSelfHostedAPIKey
value set in the helm chart?ambitious-student-88371
06/28/2023, 5:38 PMecho "Your self-hosted Infracost API key is $(kubectl get secret --namespace $NAMESPACE cloud-pricing-api --template="{{ index .data \"self-hosted-infracost-api-key\" }}" | base64 -D)"
this returns a different key though, which is invalidlittle-author-61621
ambitious-student-88371
06/28/2023, 5:45 PMapiVersion: apps/v1
kind: Deployment
metadata:
annotations:
<http://deployment.kubernetes.io/revision|deployment.kubernetes.io/revision>: "1"
<http://meta.helm.sh/release-name|meta.helm.sh/release-name>: cloud-pricing-api
<http://meta.helm.sh/release-namespace|meta.helm.sh/release-namespace>: default
creationTimestamp: "2023-06-28T13:02:03Z"
generation: 1
labels:
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: cloud-pricing-api
<http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: Helm
<http://app.kubernetes.io/name|app.kubernetes.io/name>: cloud-pricing-api
<http://app.kubernetes.io/version|app.kubernetes.io/version>: 0.3.16
<http://helm.sh/chart|helm.sh/chart>: cloud-pricing-api-0.6.9
name: cloud-pricing-api
namespace: default
resourceVersion: "683"
uid: 4aea41d5-85bb-4bd9-b029-07b04f1f518a
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: cloud-pricing-api
<http://app.kubernetes.io/name|app.kubernetes.io/name>: cloud-pricing-api
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: cloud-pricing-api
<http://app.kubernetes.io/name|app.kubernetes.io/name>: cloud-pricing-api
spec:
containers:
- env:
- name: POSTGRES_HOST
value: cloud-pricing-api-postgresql
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_DB
value: cloudpricingapi
- name: POSTGRES_USER
value: cloudpricingapi
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: cloud-pricing-api-postgresql
- name: INFRACOST_API_KEY
valueFrom:
secretKeyRef:
key: infracost-api-key
name: cloud-pricing-api
- name: SELF_HOSTED_INFRACOST_API_KEY
valueFrom:
secretKeyRef:
key: self-hosted-infracost-api-key
name: cloud-pricing-api
- name: LOG_LEVEL
value: info
- name: DISABLE_TELEMETRY
value: "false"
image: infracost/cloud-pricing-api:0.3.16
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: http
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 2
name: cloud-pricing-api
ports:
- containerPort: 4000
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: http
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 2
resources:
limits:
cpu: "1"
memory: 512Mi
requests:
cpu: 50m
memory: 64Mi
securityContext: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: cloud-pricing-api
serviceAccountName: cloud-pricing-api
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2023-06-28T13:02:38Z"
lastUpdateTime: "2023-06-28T13:02:38Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2023-06-28T13:02:03Z"
lastUpdateTime: "2023-06-28T13:02:38Z"
message: ReplicaSet "cloud-pricing-api-5b94ff9c46" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
little-author-61621
ambitious-student-88371
06/28/2023, 5:59 PMlittle-author-61621