Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Environment variables can't be found #71

@feiskyer

Description

@feiskyer

I created a pod using following spec:

{
    "containers": [
        {
            "envs": [
                {
                    "env": "SERVICE_HOST",
                    "value": "10.254.0.1"
                },
                {
                    "env": "SERVICE_PORT",
                    "value": "443"
                }
            ],
            "image": "nginx",
            "name": "nginx",
            "ports": [
                {
                    "containerPort": 80,
                    "protocol": "TCP"
                }
            ],
            "tty": false,
        }
    ],
    "resource": {
        "memory": 192,
        "vcpu": 1
    },
    "tty": true,
    "type": "pod",
}

But there is no SERVICE_HOST or SERVICE_PORT found in environment variables:

# hyper exec pod-TToRTANXBb env
HOME=/
TERM=linux
PATH=/bin:/sbin/:/usr/bin/:/usr/sbin/
PWD=/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions