hey , how can i fix this,× deploy.web ...
# 🤖|ask-kapa
m
Please stand by @some-grass-53978 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
---------------------- The error message you're seeing indicates that there's an issue with the Kubernetes Deployment manifest you're trying to apply. Specifically, it seems like a number is being provided where a string is expected in the
env.value
field of your Deployment. In Kubernetes, environment variables are represented as key-value pairs and the value should be a string. If you're trying to assign a number to an environment variable, you should convert it to a string. Here's an example of how you should define environment variables in a Kubernetes Deployment:
Copy code
yaml
apiVersion: apps/v1
kind: Deployment
spec:
  template:
    spec:
      containers:
        - name: container-name
          env:
            - name: ENV_VAR_NAME
              value: "123"  # <-- Note that the number is enclosed in quotes
Please check your Kubernetes Deployment manifest and ensure that all environment variable values are strings. If you're using Garden's templating features, make sure that the values you're injecting are also strings. For more information on how to use Garden with Kubernetes, you can refer to the official Garden documentation (). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
s
this is my deployment.yaml file, apiVersion: apps/v1 kind: Deployment metadata: name: api labels: app: api spec: replicas: 1 selector: matchLabels: app: api template: metadata: labels: app: api spec: containers: - name: api image: ${actions.build.api.outputs.deploymentImageId} imagePullPolicy: IfNotPresent args: - python - app.py env: - name: PGDATABASE value: "postgres" - name: PGUSER value: "postgres" - name: PGPASSWORD value: "postgres" ports: - containerPort: 8080 name: http protocol: TCP livenessProbe: failureThreshold: 30 httpGet: path: /health port: 8080 scheme: HTTP initialDelaySeconds: 90 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 3 readinessProbe: failureThreshold: 90 httpGet: path: /health port: 8080 scheme: HTTP initialDelaySeconds: 2 periodSeconds: 1 successThreshold: 2 timeoutSeconds: 3 resources: limits: cpu: "1" memory: 1Gi requests: cpu: 10m memory: 90Mi securityContext: allowPrivilegeEscalation: false
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
s
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
s
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
s
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
s
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
s
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
s
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Let me check the knowledge base for you. One moment! :books:
s
@microscopic-river-74022
m
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
s
@microscopic-river-74022
m
Let me check the knowledge base for you. One moment! :books:
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Let me check the knowledge base for you. One moment! :books:
s
@microscopic-river-74022
m
Sorry @some-grass-53978, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
5 Views