Kubevela FAQ - how do you inject env and secrets into your application?
To inject env or secret you need to make use of trait using a type call init-container. https://kubevela.io/docs/end-user/traits/references/#init-container apiVersion : core.oam.dev/v1beta1 kind : Application metadata : name : simple-vela-app spec : components : - name : express-server-1 type : webservice properties : image : oamdev/hello-world ports : - port : 8000 expose : true cpu : "1" memory : "120M" traits : - type : init-container properties : name : express-server-trait image : oamdev/hello-world cmd : [ "echo" , "hello" ] initMountPath : /data appMountPath : /data-initialized env : - name : "test" value : "myvalue" - name : "test2" value : "myvalue2"