<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Armory Docs – Administration for Cloud Foundry</title><link>/continuous-deployment/armory-admin/cf/</link><description>Recent content in Administration for Cloud Foundry on Armory Docs</description><generator>Hugo -- gohugo.io</generator><atom:link href="/continuous-deployment/armory-admin/cf/index.xml" rel="self" type="application/rss+xml"/><item><title>Continuous-Deployment: Cloud Foundry as a Deployment Target in Spinnaker</title><link>/continuous-deployment/armory-admin/cf/cloud-foundry-concept/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/continuous-deployment/armory-admin/cf/cloud-foundry-concept/</guid><description>
&lt;h2 id="how-spinnaker-interacts-with-cloud-foundry">How Spinnaker interacts with Cloud Foundry&lt;/h2>
&lt;figure>
&lt;img src="/images/cf/CloudFoundrySpinnaker.png"
alt="Spinnaker - Cloud Foundry Deployment Design" width="618" height="207"/> &lt;figcaption>
&lt;p>&lt;i>Spinnaker - Cloud Foundry Deployment Design&lt;/i>&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>Spinnaker has caching agents for Cloud Foundry Server Groups, Load Balancers, and Spaces. In order to perform caching and operations, these caching agents communicate directly with the Cloud Foundry Cloud Controller via its REST API. The caching agents run on a specific interval, typically every 30 seconds. You can read more about caching agents in the &lt;a href="/continuous-deployment/armory-admin/caching-agents-concept/"}>Clouddriver Caching Agents in Spinnaker&lt;/a> guide.&lt;/p>
&lt;h2 id="cloud-foundry-as-a-deployment-target">Cloud Foundry as a deployment target&lt;/h2>
&lt;p>&lt;strong>Cloud Foundry administrators&lt;/strong> should configure the minimal amount of permissions required by Spinnaker to successfully function. This typically means the Cloud Foundry account has &lt;code>Space Developer&lt;/code> permissions for at least one organization/space. In some cases, it may make sense to have one account for the entire Foundation, but this configuration isn&amp;rsquo;t normal or desired for security reasons.&lt;/p>
&lt;p>&lt;strong>Spinnaker administrators&lt;/strong> can configure one or more Cloud Foundry accounts as cloud providers.&lt;/p>
&lt;p>&lt;strong>Spinnaker users&lt;/strong> can use a Cloud Foundry account as a deployment target. Users can perform Cloud Foundry operations by using the Cloud Foundry &lt;a href="https://spinnaker.io/reference/pipeline/stages/#cloud-foundry">stages&lt;/a> in their pipelines.&lt;/p>
&lt;h2 id="whats-next">What&amp;rsquo;s next&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="/continuous-deployment/armory-admin/cf/add-cf-account/"}>Add a Cloud Foundry Account in Spinnaker&lt;/a>&lt;/li>
&lt;li>&lt;a href="/continuous-deployment/spinnaker-user-guides/best-practices-cf/"}>Cloud Foundry Best Practices&lt;/a>&lt;/li>
&lt;/ul></description></item><item><title>Continuous-Deployment: Add a Cloud Foundry Account in Spinnaker</title><link>/continuous-deployment/armory-admin/cf/add-cf-account/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/continuous-deployment/armory-admin/cf/add-cf-account/</guid><description>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;p>This document assumes the following:&lt;/p>
&lt;ul>
&lt;li>You are familiar with how Spinnaker uses Cloud Foundry as a deployment target. See the &lt;a href="/continuous-deployment/armory-admin/cf/cloud-foundry-concept/"}>Cloud Foundry as a Deployment Target in Spinnaker&lt;/a> guide for details.&lt;/li>
&lt;li>You have access to a running Spinnaker instance.&lt;/li>
&lt;li>You use the Armory Operator or the Spinnaker Operator for Kubernetes to configure your Spinnaker instance.&lt;/li>
&lt;li>You have a valid Cloud Foundry account with at least &lt;code>Space Developer&lt;/code> access to one or more spaces.&lt;/li>
&lt;/ul>
&lt;h2 id="add-the-cloud-foundry-account-to-spinnaker">Add the Cloud Foundry account to Spinnaker&lt;/h2>
&lt;blockquote>
&lt;p>Spinnaker must be able to reach your Cloud Foundry API endpoint. See the Cloud Foundry &lt;a href="https://docs.cloudfoundry.org/running/cf-api-endpoint.html">docs&lt;/a> for how to identify the API endpoint and version.&lt;/p>
&lt;/blockquote>
&lt;p>At a minimum, each Cloud Foundry account in Spinnaker should have the following:&lt;/p>
&lt;ul>
&lt;li>&lt;code>name&lt;/code>: The name of the Cloud Foundry account in Spinnaker.&lt;/li>
&lt;li>&lt;code>environment&lt;/code>: The environment name for the account. Many accounts can share the same environment (e.g. dev, test, prod)&lt;/li>
&lt;li>&lt;code>user&lt;/code>: User name for the account to use on for this CloudFoundry Foundation&lt;/li>
&lt;li>&lt;code>password&lt;/code>: Password for the account to use on for this CloudFoundry Foundation. Supports encrypted value.&lt;/li>
&lt;li>&lt;code>apiHost&lt;/code>: Host of the CloudFoundry Foundation API endpoint. Example: &lt;code>api.sys.somesystem.com&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>You may also want to configure:&lt;/p>
&lt;ul>
&lt;li>&lt;code>appsManagerUrl&lt;/code>: HTTP(S) URL of the Apps Manager application for the CloudFoundry Foundation. Example: &lt;code>https://apps.sys.somesystem.com&lt;/code>.&lt;/li>
&lt;li>&lt;code>metricsUrl&lt;/code>: HTTP(S) URL of the metrics application for the CloudFoundry Foundation. Example: &lt;code>https://metrics.sys.somesystem.com&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>See the Operator &lt;a href="/continuous-deployment/installation/armory-operator/op-manifest-reference/providers/#cloud-foundry">provider configuration reference&lt;/a> for the full list of values supported by Cloud Foundry accounts in Spinnaker.&lt;/p>
&lt;p>Add the following Cloud Foundry configuration to your &lt;code>SpinnakerServce&lt;/code> manifest, replacing placeholders with your values:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yaml" data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ff79c6">apiVersion&lt;/span>: spinnaker.armory.io/v1alpha2
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ff79c6">kind&lt;/span>: SpinnakerService
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ff79c6">metadata&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">name&lt;/span>: spinnaker
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ff79c6">spec&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">spinnakerConfig&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">config&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">providers&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">cloudfoundry&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">enabled&lt;/span>: &lt;span style="color:#ff79c6">true&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">accounts&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ff79c6">name&lt;/span>: &amp;lt;your-cf-account&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">environment&lt;/span>: &amp;lt;your-env&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">requiredGroupMembership&lt;/span>: []
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">permissions&lt;/span>: {}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">providerVersion&lt;/span>: V1
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">user&lt;/span>: &amp;lt;your-user-account&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">password&lt;/span>: &amp;lt;your-secret-password&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">apiHost&lt;/span>: &amp;lt;your-cf-api-endpoint&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">appsManagerUri&lt;/span>: &amp;lt;apps-manager-url&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">metricsUri&lt;/span>: &amp;lt;metrics-url&amp;gt;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">skipSslValidation&lt;/span>: &lt;span style="color:#ff79c6">false&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ff79c6">primaryAccount&lt;/span>: &amp;lt;your-cf-primary-account&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Apply your changes:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>kubectl -n &amp;lt;your-spinnaker-namespace&amp;gt; apply -f &amp;lt;path-to-SpinnakerService.yml&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="verify-the-cloud-foundry-account-appears-in-the-spinnaker-ui">Verify the Cloud Foundry account appears in the Spinnaker UI&lt;/h2>
&lt;p>After you apply your changes, you should see the new Cloud Foundry account in your Spinnaker UI and be able to deploy to it.&lt;/p>
&lt;blockquote>
&lt;p>To see the changes, you may have to clear your browser cache / hard refresh your browser (&lt;code>cmd-shift-r&lt;/code> or &lt;code>control-shift-r&lt;/code>)&lt;/p>
&lt;/blockquote>
&lt;h2 id="whats-next">What&amp;rsquo;s next&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="/continuous-deployment/spinnaker-user-guides/best-practices-cf/"}>Cloud Foundry Best Practices&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>