<p>I've been using
<code>helm install spinnaker stable/spinnaker -f spinnaker-config.yaml --timeout 1200s --version 2.0.0-rc9</code>
Which is the latest helm chart for Spinnaker.
Using this on a freshly created K8s cluster on GKE.
Just installed Helm so I have the latest.</p>
<p>Result is that it created a Job named <code>spinnaker-install-using-hal</code> and the pod for this job keeps restarting...
Container logs show:</p>
<pre><code>/opt/halyard/scripts/config.sh: line 10: syntax error near unexpected token `newline'
</code></pre>
<p>I've actually found this file is mounted from a <code>ConfigMap</code> named <code>*-spinnaker-halyard-config</code>.</p>
<p>The <code>ConfigMap</code> value for <code>config.sh</code> is set to:</p>
<pre><code># Spinnaker version
$HAL_COMMAND config version edit --version 1.19.4


# Storage



$HAL_COMMAND config storage gcs edit --project XXXXXXXXXX --json-path /opt/gcs/key.json --bucket &lt;GCS-BUCKET-NAME&gt;
$HAL_COMMAND config storage edit --type gcs



# Docker Registry
$HAL_COMMAND config provider docker-registry enable

if $HAL_COMMAND config provider docker-registry account get dockerhub; then
  PROVIDER_COMMAND='edit'
else
  PROVIDER_COMMAND='add'
fi

$HAL_COMMAND config provider docker-registry account $PROVIDER_COMMAND dockerhub --address index.docker.io \
   \
  --repositories library/alpine,library/ubuntu,library/centos,library/nginx

$HAL_COMMAND config provider kubernetes enable

if $HAL_COMMAND config provider kubernetes account get default; then
  PROVIDER_COMMAND='edit'
else
  PROVIDER_COMMAND='add'
fi

$HAL_COMMAND config provider kubernetes account $PROVIDER_COMMAND default --docker-registries dockerhub \
            --context default --service-account true \
             \
             \
             \
             \
            --omit-namespaces=kube-system,kube-public \
             \
             \
            --provider-version v2
$HAL_COMMAND config deploy edit --account-name default --type distributed \
                       --location default
# Use Deck to route to Gate
$HAL_COMMAND config security api edit --no-validate --override-base-url /gate
$HAL_COMMAND config features edit --artifacts true
</code></pre>
<p>In line #9 it has the value <code>&lt;GCS-BUCKET-NAME&gt;</code> instead of the real bucket name. This probably caused the script to fail.</p>
<p>Still not sure what causes that to not be populated.</p>

srfrnk
<p>Found the problem... maybe someone finds it helpful...</p>
<p>I was using the following guide <a href="https://medium.com/velotio-perspectives/know-everything-about-spinnaker-how-to-deploy-using-kubernetes-engine-57090881c78f" rel="nofollow noreferrer">https://medium.com/velotio-perspectives/know-everything-about-spinnaker-how-to-deploy-using-kubernetes-engine-57090881c78f</a></p>
<p>Which is a great guide but i guess not too updated...</p>
<p>Anyway it says you should configure</p>
<pre><code>storageBucket: $BUCKET 
gcs:   
  enabled: true 
  project: $PROJECT   
  jsonKey: '$SA_JSON' 
</code></pre>
<p>Which is incorrect... it should be as follows:</p>
<pre><code>gcs:   
  enabled: true
  bucket: $BUCKET
  project: $PROJECT
  jsonKey: '$SA_JSON'
</code></pre>
<p>This solved it.</p>
