Create Kubernetes ConfigMaps declaratively

apiVersion: v1
kind: ConfigMap
metadata:
  name: app-config
data:
  APP_COLOR: blue
  APP_MODE: prod
You can also store files like in this example: Kubernetes ConfigMap example