<p>So, i have a k8s cluster running on AWS, provisioned using kops. I have created a secret locally, using kubectl:</p>

<pre><code>    kubectl create secret generic aws-es --from-file=./aws_key.txt --from-file=./aws_secret_key.txt
</code></pre>

<p>My service.yml has this env:</p>

<pre><code>    - name: AWS_ACCESS_KEY_ID
        valueFrom:
          secretKeyRef:
            name: aws-es
            key: aws_key
</code></pre>

<p>And when i update the service in the cluster with:</p>

<pre><code>    kubectl apply -f service.yml
</code></pre>

<p>I get the error running pod:</p>

<pre><code>     Error: secrets "aws-es" not found
     Error syncing pod 
</code></pre>

<p>Obviously, my kops installation cannot see the locally created secret, is there a way for me to propagate that secret to kops' s3 storage?</p>

<p>Fixed it. The problem was i created secrets in default namespace, while my pods were running in kube-system namespace.</p>
