$ base64 -i ~/path/to/downloads/credentials.json
‘BASE64_CREDENTIAL_STRING’
apiVersion: v1 kind: Secret metadata: name: google-services-secret type: Opaque data: google-services.json: BASE64_CREDENTIAL_STRING
$ oc create -f google-secret.yaml
“GOOGLE_APPLICATION_CREDENTIALS”
pubsub/bigquery-controller.yaml
pubsub/twitter-stream.yaml
apiVersion: v1 kind: ReplicationController metadata: name: bigquery-controller labels: name: bigquery-controller spec: containers: … env: … - name: GOOGLE_APPLICATION_CREDENTIALS value: /etc/secretspath/google-services.json volumeMounts: - name: secrets mountPath: /etc/secretspath readOnly: true volumes: - name: secrets secret: secretName: google-services-secret
0 件のコメント :
コメントを投稿