Alright, so I have a json file with google cloud credentials. I want to add it to my cluster as a secret so right now I have this
apiVersion: v1
kind: Secret
metadata:
name: google-credentials
stringData:
credentials.json: |-
<GOOGLE-CREDENTIALS>
And I am doing some sed hacks to try and get it to look right, but I am having tons of issues with it.
So I wonder: is it possible to reference a external file in your deployment.yaml?
And to be clear I have found out that I could do this
kubectl create configmap game-config --from-file=configure-pod-container/configmap/
But I would strongly prefer it to be in one command, i.e. kubectl apply -f deployment.yaml