How to setup the environment variables in Kubernetes

spec.containers.env is an array:

env:
- name: APP_COLOR
  value: green
A Docker alternative for the above definition is:
docker run -e APP_COLOR=green simple-webapp-color