You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
- A Heroku API token (you can find this under**Account Settings** and then scrolling down, you will find the API Key)
34
34
@@ -47,7 +47,7 @@ max-width="100%"
47
47
48
48
You should be able to copy and paste this YAML in the in-line editor of the Codefresh UI. It will automatically clone the project for you.
49
49
50
-
Note that you need to change the environment variables in the deploy stage to your respective values. You can do thisdirectly[in the YAML itself]({{site.baseurl}}/docs/how-to-guides/migrating-from-travis-ci/#environment-variables), orthrough the Codefresh UI. Navigate to the in-line editor, and to the right you will find a tablebeled**Variables**.
50
+
Note that you need to change the environment variables in the deploy stage to your respective values. You can do this through the Codefresh UI. Navigate to the in-line editor, and to the right you will find a tablabeled**Variables**.
51
51
52
52
{% include image.html
53
53
lightbox="true"
@@ -100,13 +100,13 @@ The above pipeline has the following steps:
100
100
101
101
1. A[git-clone]({{site.baseurl}}/docs/pipelines/steps/git-clone/) step that clones the main repository
102
102
2. A[freestyle step]({{site.baseurl}}/docs/pipelines/steps/freestyle/) that installs dependencies and runs the unit tests
103
-
3. A freestyle step that deploys the application to Heroku using the heroku-deployer plugin from the[Step Marketplace](https://codefresh.io/steps/step/heroku-deployer)
103
+
3. A freestyle step that deploys the application to Heroku using the heroku-deployer plugin from the[Step Marketplace](https://codefresh.io/steps/step/heroku-deployer){:target="\_blank"}.
104
104
105
105
##Pipeline Example#2: Deploy a Docker Image to Heroku
106
106
107
107
This example differs from the plugin usage, as it deploys a built Docker image to Heroku.
108
108
109
-
Note that you need to change the environment variables to your respective values. You can do thisdirectly[in the YAML itself]({{site.baseurl}}/docs/how-to-guides/migrating-from-travis-ci/#environment-variables), orthrough the Codefresh UI. Navigate to the in-line editor, and to the right you will find a tablebeled**Variables**.
109
+
Note that you need to change the environment variables to your respective values. You can do this through the Codefresh UI. Navigate to the in-line editor, and to the right you will find a tablabeled**Variables**.
Copy file name to clipboardExpand all lines: _docs/example-catalog/cd-examples/deploy-with-kustomize.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ redirect_from:
8
8
toc:true
9
9
---
10
10
11
-
[Kustomize](https://kustomize.io) is a tool included with kubectl 1.14 that "lets you customize raw, template-free YAML files for multiple purposes, leaving the original YAML untouched and usable as is."
11
+
[Kustomize](https://kustomize.io){:target="\_blank"} is a tool included with kubectl 1.14 that "lets you customize raw, template-free YAML files for multiple purposes, leaving the original YAML untouched and usable as is."
12
12
13
13
Kustomize is more of an overlay engine, as opposed to a templating engine. You create a base configuration and overlays. Your overlays contain a*kustomization.yaml* file, and any variants/changes are applied over top of the base configuration. Kustomize does not use templates at all.
14
14
@@ -68,7 +68,7 @@ data:
68
68
mysqlDB: "prod-mysql.example.com:3306"
69
69
```
70
70
71
-
In addition, for the production environment, the number of replicas will be overlayed to 3 instead of1 (as [definedinthebasedeployment](https://github.com/codefresh-contrib/kustomize-sample-app/blob/32e683f82940de0bf2de2da40fa6b150e2b24b23/base/deployment.yaml#L8)){:target="\_blank"}.
71
+
In addition, for the production environment, the number of replicas will be overlayed to 3 instead of1 (as [definedinthebasedeployment](https://github.com/codefresh-contrib/kustomize-sample-app/blob/32e683f82940de0bf2de2da40fa6b150e2b24b23/base/deployment.yaml#L8){:target="\_blank"}).
72
72
73
73
`overlays/production/deployment.yaml`
74
74
```yaml
@@ -82,9 +82,8 @@ spec:
82
82
83
83
##Prerequisites
84
84
85
-
-A [freeCodefreshaccount]({{site.baseurl}}/docs/administration/account-user-management/create-codefresh-account)
86
-
<!--change once moved-->
87
-
- A Kubernetes cluster [connected to your Codefresh account](https://codefresh.io/docs/docs/integrations/kubernetes/#connect-a-kubernetes-cluster)
85
+
-A [freeCodefreshaccount]({{site.baseurl}}/docs/administration/account-user-management/create-codefresh-account/)
86
+
- A Kubernetes cluster [connected to your Codefresh account]({{site.baseurl}}/docs/integrations/kubernetes/#connect-a-kubernetes-cluster)
The values of`MY_REGISTRY`,`MY_REGISTRY_USER` and`MY_REGISTRY_PASSWORD` depend upon the type of[your connected registry]({{site.baseurl}}/docs/integration/docker-registries/).
214
+
The values of`MY_REGISTRY`,`MY_REGISTRY_USER` and`MY_REGISTRY_PASSWORD` depend upon the type of[your connected registry]({{site.baseurl}}/docs/integrations/docker-registries/).
Copy file name to clipboardExpand all lines: _docs/example-catalog/cd-examples/helm.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,27 +12,28 @@ toc: true
12
12
Codefresh has comprehensive support for Helm:
13
13
14
14
* Free[built-in Helm repository]({{site.baseurl}}/docs/deployments/helm/managed-helm-repository/) with each Codefresh account
15
-
*[Helm chart dashboard]({{site.baseurl}}/docs/docs/deployments/add-helm-repository/) to track your charts
16
-
*[Helm Release dashboard]({{site.baseurl}}/docs/docs/deployments/helm-releases-management/) to view your deployments
15
+
*[Helm chart dashboard]({{site.baseurl}}/docs/deployments/helm/helm-charts-and-repositories/) to track your charts
16
+
*[Helm Release dashboard]({{site.baseurl}}/docs/deployments/helm/helm-releases-management/) to view your deployments
17
17
*[Environment dashsboard]({{site.baseurl}}/docs/deployments/kubernetes/environment-dashboard/) to view Helm releases
18
-
*[Helm promotion dashboard]({{site.baseurl}}/docs/deployments/helm-environment-promotion/) to promote Helm releases
18
+
*[Helm promotion dashboard]({{site.baseurl}}/docs/deployments/helm/helm-environment-promotion/) to promote Helm releases
19
19
* Add any external Helm repository on any other cloud provider
20
20
21
-
Codefresh also provides a[pipeline step]({{site.baseurl}}/docs/new-helm/using-helm-in-codefresh-pipeline/) for deploying with Helm.
21
+
Codefresh also provides a[pipeline step]({{site.baseurl}}/docs/deployments/helm/using-helm-in-codefresh-pipeline/) for deploying with Helm.
22
22
23
-
For more insights on Helm charts see also our[Helm best practices]({{site.baseurl}}/docs/new-helm/helm-best-practices/) guide.
23
+
For more insights on Helm charts see also our[Helm best practices]({{site.baseurl}}/docs/ci-cd-guides/helm-best-practices/) guide.
24
24
25
25
26
26
##The example Helm project
27
27
28
-
You can see the example project at[https://github.com/codefresh-contrib/helm-sample-app](https://github.com/codefresh-contrib/helm-sample-app){:target=\_blank"}. The repository contains a simple Go application, a Dockerfile and an example chart.
28
+
You can see the example project at[https://github.com/codefresh-contrib/helm-sample-app](https://github.com/codefresh-contrib/helm-sample-app){:target="\_blank"}. The repository contains a simple Go application, a Dockerfile and an example chart.
29
29
30
30
31
31
##Prerequisites
32
32
33
-
[At least one Kubernetes cluster]({{site.baseurl}}/docs/integrations/kubernetes/#connect-a-kubernetes-cluster/) in your Codefresh account.
33
+
[At least one Kubernetes cluster]({{site.baseurl}}/docs/integrations/kubernetes/#connect-a-kubernetes-cluster) in your Codefresh account.
34
34
35
-
>Notice that if you still use Helm 2 you should also have installed the server side of Helm 2 (Tiller) using`helm init`. This command is best run from the cloud console of your cluster. The respective pipelines of this guide are in the[helm-2 branch](https://github.com/codefresh-contrib/helm-sample-app/tree/helm-2){:target=\_blank"}.
35
+
<!--- ask Kostis if we need this?>
36
+
>Notice that if you still use Helm 2 you should also have installed the server side of Helm 2 (Tiller) using `helm init`. This command is best run from the cloud console of your cluster. The respective pipelines of this guide are in the [helm-2 branch](https://github.com/codefresh-contrib/helm-sample-app/tree/helm-2){:target=\_blank"}.-->
36
37
37
38
38
39
@@ -101,11 +102,11 @@ This pipeline does the following:
101
102
102
103
1. Clones the source code through a[Git clone step]({{site.baseurl}}/docs/pipelines/steps/git-clone/)
103
104
1. Builds a docker image through a[build step]({{site.baseurl}}/docs/pipelines/steps/build/)
104
-
1. Deploys the Helm chart to a cluster named`my-demo-k8s-cluster` using the Helm step[from the Step Marketplace](https://codefresh.io/steps/step/helm){:target=\_blank"}.
105
+
1. Deploys the Helm chart to a cluster named`my-demo-k8s-cluster` using the Helm step[from the Step Marketplace](https://codefresh.io/steps/step/helm){:target="\_blank"}.
105
106
106
-
In this example,`charts/helm-example` refers to the[filesystem location in the code](https://github.com/codefresh-contrib/helm-sample-app/tree/master/charts/helm-example){:target=\_blank"} that was just checked out.
107
+
In this example,`charts/helm-example` refers to the[filesystem location in the code](https://github.com/codefresh-contrib/helm-sample-app/tree/master/charts/helm-example){:target="\_blank"} that was just checked out.
107
108
108
-
The deployment will be visible in the[Helm releases dashboard]({{site.baseurl}}/docs/new-helm/helm-releases-management/).
109
+
The deployment will be visible in the[Helm releases dashboard]({{site.baseurl}}/docs/deployments/helm/helm-releases-management/).
109
110
110
111
{% include image.html
111
112
lightbox="true"
@@ -123,7 +124,7 @@ If you want to run this example yourself, make sure to edit the chart and put yo
123
124
It is recommended to use a Helm repository to store your chart before deploying it. This way you know what is deployed in your clusters
124
125
and you can also reuse charts in other installations.
125
126
126
-
First of all you need to import in your pipeline from the[shared configuration]({{site.baseurl}}/docs/pipelines/shared-configuration/) the settings for the internal Helm repository (or any other external repository that you have setup in Codefresh).
127
+
First of all you need to import in your pipeline from the[shared configuration]({{site.baseurl}}/docs/pipelines/configuration/shared-configuration/) the settings for the internal Helm repository (or any other external repository that you have setup in Codefresh).
127
128
This will make available the internal Helm repository to your pipeline so that it can push/pull Helm charts from it.
128
129
129
130
{% include image.html
@@ -205,7 +206,7 @@ steps:
205
206
{% endhighlight %}
206
207
207
208
208
-
After you finish running your pipeline, not only the deployment will take place, but you will also see your chart in your[Helm Chart dashboard]({{site.baseurl}}/docs/new-helm/add-helm-repository/):
209
+
After you finish running your pipeline, not only the deployment will take place, but you will also see your chart in your[Helm Chart dashboard]({{site.baseurl}}/docs/deployments/helm/helm-charts-and-repositories/):
209
210
210
211
{% include image.html
211
212
lightbox="true"
@@ -220,7 +221,7 @@ It is also possible to [run your own Helm commands]({{site.baseurl}}/docs/deploy
Copy file name to clipboardExpand all lines: _docs/example-catalog/cd-examples/nomad.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ toc: true
11
11
Even though Codefresh has great support for Kubernetes and Helm deployments, there is no lock-in on using just Kubernetes. Codefresh can deploy on any infrastructure.
12
12
13
13
14
-
[Nomad](https://www.nomadproject.io/){:target=\_blank"} is an alternative scheduling platform from Hashicorp. It supports docker containers (like Kubernetes), but you can also use Nomad to schedule VMs, Java apps, Go apps or any other standalone executable.
14
+
[Nomad](https://www.nomadproject.io/){:target="\_blank"} is an alternative scheduling platform from Hashicorp. It supports docker containers (like Kubernetes), but you can also use Nomad to schedule VMs, Java apps, Go apps or any other standalone executable.
15
15
16
16
There are several public Docker Images with Nomad, so it is very easy to use Codefresh pipelines to deploy to a Nomad cluster.
17
17
@@ -25,11 +25,11 @@ caption="Deploying to Nomad with Codefresh"
25
25
max-width="80%"
26
26
%}
27
27
28
-
In this example, we will use the image at[https://hub.docker.com/r/djenriquez/nomad](https://hub.docker.com/r/djenriquez/nomad){:target=\_blank"}.
28
+
In this example, we will use the image at[https://hub.docker.com/r/djenriquez/nomad](https://hub.docker.com/r/djenriquez/nomad){:target="\_blank"}.
29
29
30
30
##The example Nomad project
31
31
32
-
You can see the example project at[https://github.com/codefresh-contrib/nomad-sample-app](https://github.com/codefresh-contrib/nomad-sample-app){:target=\_blank"}. The repository contains a simple job specification that deploys a docker container on nomad cluster.
32
+
You can see the example project at[https://github.com/codefresh-contrib/nomad-sample-app](https://github.com/codefresh-contrib/nomad-sample-app){:target="\_blank"}. The repository contains a simple job specification that deploys a docker container on nomad cluster.
33
33
34
34
35
35
Here is the whole job file:
@@ -124,13 +124,13 @@ job "example-job" {
124
124
{% endraw %}
125
125
{% endhighlight %}
126
126
127
-
Notice that the job specification has several[Codefresh variables]({{site.baseurl}}/docs/pipelines/variables/) embedded. We will use[envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html){:target=\_blank"} in our pipeline to replace
127
+
Notice that the job specification has several[Codefresh variables]({{site.baseurl}}/docs/pipelines/variables/) embedded. We will use[envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html){:target="\_blank"} in our pipeline to replace
128
128
them with the correct values.
129
129
130
130
##Prerequisites
131
131
132
132
You need to create a Codefresh account and have a Nomad cluster running. You need to decide on how Codefresh will communicate
133
-
with the nomad cluster. In this simple example we just use the`NOMAD_ADDR` variable to point the nomad client to our cluster. In a production environment you should use proper[ACL](https://www.nomadproject.io/guides/security/acl.html){:target=\_blank"} and[certificate](https://www.nomadproject.io/guides/security/securing-nomad.html){:target=\_blank"} variables as well.
133
+
with the nomad cluster. In this simple example we just use the`NOMAD_ADDR` variable to point the nomad client to our cluster. In a production environment you should use proper[ACL](https://www.nomadproject.io/guides/security/acl.html){:target="\_blank"} and[certificate](https://www.nomadproject.io/guides/security/securing-nomad.html){:target="\_blank"} variables as well.
134
134
135
135
136
136
In this example the Nomad cluster is already setup on a VM at Google cloud.
@@ -221,7 +221,7 @@ max-width="80%"
221
221
You can also use[Terraform]({{site.baseurl}}/docs/example-catalog/cd-examples/terraform/) in Codefresh pipelines.