Skip to content

Commit 640e854

Browse files
Bharath KaimalBharath Kaimal
authored andcommitted
updates to kubernetes-deployments
1 parent 2c37b81 commit 640e854

File tree

4 files changed

+62
-58
lines changed

4 files changed

+62
-58
lines changed

docs/openshift/deployments/index.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ A Deployment provides declarative updates for Pods and ReplicaSets.
55
You describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state at a controlled rate. You can define Deployments to create new ReplicaSets, or to remove existing Deployments and adopt all their resources with new Deployments.
66

77
The following are typical use cases for Deployments:
8+
89
- Create a Deployment to rollout a ReplicaSet. The ReplicaSet creates Pods in the background. Check the status of the rollout to see if it succeeds or not.
910
- Declare the new state of the Pods by updating the PodTemplateSpec of the Deployment. A new ReplicaSet is created and the Deployment manages moving the Pods from the old ReplicaSet to the new one at a controlled rate. Each new ReplicaSet updates the revision of the Deployment.
1011
- Rollback to an earlier Deployment revision if the current state of the Deployment is not stable. Each rollback updates the revision of the Deployment.
@@ -13,24 +14,23 @@ The following are typical use cases for Deployments:
1314
- Use the status of the Deployment as an indicator that a rollout has stuck.
1415
- Clean up older ReplicaSets that you don’t need anymore.
1516

16-
1717
## Resources
1818

1919
=== "OpenShift"
2020

21-
[Deployments :fontawesome-solid-globe:](https://docs.openshift.com/container-platform/4.13/applications/deployments/what-deployments-are.html){ .md-button target="_blank"}
21+
[Deployments :fontawesome-solid-cloud-arrow-up:](https://docs.openshift.com/container-platform/4.13/applications/deployments/what-deployments-are.html){ .md-button target="_blank"}
2222

23-
[Managing Deployment Processes :fontawesome-solid-globe:](https://docs.openshift.com/container-platform/4.13/applications/deployments/managing-deployment-processes.html){ .md-button target="_blank"}
23+
[Managing Deployment Processes :fontawesome-solid-cloud-arrow-up:](https://docs.openshift.com/container-platform/4.13/applications/deployments/managing-deployment-processes.html){ .md-button target="_blank"}
2424

25-
[DeploymentConfig Strategies :fontawesome-solid-globe:](https://docs.openshift.com/container-platform/4.13/applications/deployments/deployment-strategies.html){ .md-button target="_blank"}
25+
[DeploymentConfig Strategies :fontawesome-solid-cloud-arrow-up:](https://docs.openshift.com/container-platform/4.13/applications/deployments/deployment-strategies.html){ .md-button target="_blank"}
2626

27-
[Route Based Deployment Strategies :fontawesome-solid-globe:](https://docs.openshift.com/container-platform/4.13/applications/deployments/route-based-deployment-strategies.html){ .md-button target="_blank"}
27+
[Route Based Deployment Strategies :fontawesome-solid-cloud-arrow-up:](https://docs.openshift.com/container-platform/4.13/applications/deployments/route-based-deployment-strategies.html){ .md-button target="_blank"}
2828

2929
=== "Kubernetes"
3030

31-
[Deployments :fontawesome-solid-globe:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/){ .md-button target="_blank"}
31+
[Deployments :fontawesome-solid-cloud-arrow-up:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/){ .md-button target="_blank"}
3232

33-
[Scaling Deployments :fontawesome-solid-globe:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#scaling-a-deployment){ .md-button target="_blank"}
33+
[Scaling Deployments :fontawesome-solid-cloud-arrow-up:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#scaling-a-deployment){ .md-button target="_blank"}
3434

3535
## References
3636

@@ -52,10 +52,10 @@ spec:
5252
app: nginx
5353
spec:
5454
containers:
55-
- name: nginx
56-
image: bitnami/nginx:1.16.0
57-
ports:
58-
- containerPort: 8080
55+
- name: nginx
56+
image: bitnami/nginx:1.16.0
57+
ports:
58+
- containerPort: 8080
5959
```
6060
6161
=== "Openshift"
@@ -112,7 +112,7 @@ spec:
112112

113113
## Activities
114114

115-
| Task | Description | Link |
116-
| --------------------------------| ------------------ |:----------- |
117-
| *** Try It Yourself *** | | |
118-
| Rolling Updates Lab | Create a Rolling Update for your application | [Rolling Updates](../../labs/kubernetes/lab6/index.md) |
115+
| Task | Description | Link |
116+
| --------------------- | -------------------------------------------- | :----------------------------------------------------- |
117+
| **_Try It Yourself_** | | |
118+
| Rolling Updates Lab | Create a Rolling Update for your application | [Rolling Updates](../../labs/kubernetes/lab6/index.md) |

docs/openshift/deployments/updates/index.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ A Deployment’s revision is created when a Deployment’s rollout is triggered.
1717

1818
=== "OpenShift"
1919

20-
[Rollouts :fontawesome-solid-globe:](https://docs.openshift.com/container-platform/4.13/applications/deployments/what-deployments-are.html#delpoymentconfigs-specific-features_what-deployments-are){ .md-button target="_blank"}
20+
[Rollouts :fontawesome-solid-rotate-right:](https://docs.openshift.com/container-platform/4.13/applications/deployments/what-deployments-are.html#delpoymentconfigs-specific-features_what-deployments-are){ .md-button target="_blank"}
2121

22-
[Rolling Back :fontawesome-solid-globe:](https://docs.openshift.com/container-platform/4.13/applications/deployments/managing-deployment-processes.html#deployments-rolling-back_deployment-operations){ .md-button target="_blank"}
22+
[Rolling Back :fontawesome-solid-rotate-left:](https://docs.openshift.com/container-platform/4.13/applications/deployments/managing-deployment-processes.html#deployments-rolling-back_deployment-operations){ .md-button target="_blank"}
2323

2424
=== "Kubernetes"
2525

26-
[Updating a Deployment :fontawesome-solid-globe:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment){ .md-button target="_blank"}
27-
28-
[Rolling Back a Deployment :fontawesome-solid-globe:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-back-a-deployment){ .md-button target="_blank"}
26+
[Updating a Deployment :fontawesome-solid-rotate-right:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment){ .md-button target="_blank"}
2927

28+
[Rolling Back a Deployment :fontawesome-solid-rotate-left:](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-back-a-deployment){ .md-button target="_blank"}
3029

3130
## References
3231

@@ -48,10 +47,10 @@ spec:
4847
app: nginx
4948
spec:
5049
containers:
51-
- name: nginx
52-
image: bitnami/nginx:1.16.0
53-
ports:
54-
- containerPort: 8080
50+
- name: nginx
51+
image: bitnami/nginx:1.16.0
52+
ports:
53+
- containerPort: 8080
5554
```
5655
5756
=== "OpenShift"
@@ -100,4 +99,4 @@ spec:
10099

101100
``` Bash title="Setting Namespace in Context"
102101
kubectl config set-context --current --namespace=dev
103-
```
102+
```

docs/openshift/pods/health-checks/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ Kubernetes provides no native storage solution for log data, but you can integra
8080
8181
=== "OpenShift"
8282
83-
[Logs Command :fontawesome-solid-file-lines:](https://docs.openshift.com/container-platform/4.13/cli_reference/openshift_cli/developer-cli-commands.html){:target="_blank"}
83+
[Logs Command :fontawesome-solid-file-lines:](https://docs.openshift.com/container-platform/4.13/cli_reference/openshift_cli/developer-cli-commands.html){ .md-button target="_blank"}
8484
85-
[Cluster Logging :fontawesome-solid-file-lines:](https://docs.openshift.com/container-platform/4.13/logging/cluster-logging.html){:target="_blank"}
85+
[Cluster Logging :fontawesome-solid-file-lines:](https://docs.openshift.com/container-platform/4.13/logging/cluster-logging.html){ .md-button target="_blank"}
8686
87-
[Logging Collector :fontawesome-solid-file-lines:](https://docs.openshift.com/container-platform/4.13/logging/config/cluster-logging-collector.html){:target="_blank"}
87+
[Logging Collector :fontawesome-solid-file-lines:](https://docs.openshift.com/container-platform/4.13/logging/config/cluster-logging-collector.html){ .md-button target="_blank"}
8888
89-
=== "IBM Cloud Kubernetes Service"
89+
=== "Kubernetes"
9090
91-
[Logging :fontawesome-solid-file-lines:](https://kubernetes.io/docs/concepts/cluster-administration/logging/){:target="_blank"}
91+
[Logging :fontawesome-solid-file-lines:](https://kubernetes.io/docs/concepts/cluster-administration/logging/){ .md-button target="_blank"}
9292
9393
### References
9494
@@ -141,13 +141,13 @@ Prometheus, a CNCF project, can natively monitor Kubernetes, nodes, and Promethe
141141

142142
=== "OpenShift"
143143

144-
[Monitoring Application Health :fontawesome-brands-watchman-monitoring:](https://docs.openshift.com/container-platform/4.13/applications/application-health.html){:target="_blank"}
144+
[Monitoring Application Health :fontawesome-brands-watchman-monitoring:](https://docs.openshift.com/container-platform/4.13/applications/application-health.html){ .md-button target="_blank"}
145145

146-
=== "IBM Cloud Kubernetes Service"
146+
=== "Kubernetes"
147147

148-
[Monitoring Resource Usage :fontawesome-brands-watchman-monitoring:](https://kubernetes.io/docs/tasks/debug-application-cluster/resource-usage-monitoring/){:target="_blank"}
148+
[Monitoring Resource Usage :fontawesome-brands-watchman-monitoring:](https://kubernetes.io/docs/tasks/debug-application-cluster/resource-usage-monitoring/){ .md-button target="_blank"}
149149

150-
[Resource Metrics :fontawesome-brands-watchman-monitoring:](https://kubernetes.io/docs/tasks/debug-application-cluster/resource-metrics-pipeline/){:target="_blank"}
150+
[Resource Metrics :fontawesome-brands-watchman-monitoring:](https://kubernetes.io/docs/tasks/debug-application-cluster/resource-metrics-pipeline/){ .md-button target="_blank"}
151151

152152
### References
153153

docs/openshift/pods/jobs/index.md

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
# Jobs and CronJobs
22

33
**Jobs**
4-
A Job creates one or more Pods and ensures that a specified number of them successfully terminate. As pods successfully complete, the Job tracks the successful completions. When a specified number of successful completions is reached, the task (ie, Job) is complete. Deleting a Job will clean up the Pods it created.
54

5+
A Job creates one or more Pods and ensures that a specified number of them successfully terminate. As pods successfully complete, the Job tracks the successful completions. When a specified number of successful completions is reached, the task (ie, Job) is complete. Deleting a Job will clean up the Pods it created.
66

77
**CronJobs**
8+
89
One CronJob object is like one line of a crontab (cron table) file. It runs a job periodically on a given schedule, written in Cron format.
910

1011
All CronJob schedule: times are based on the timezone of the master where the job is initiated.
1112

1213
## Resources
1314

14-
**OpenShift**
15-
- [Jobs](https://docs.openshift.com/container-platform/4.3/nodes/jobs/nodes-nodes-jobs.html)
16-
- [CronJobs](https://docs.openshift.com/container-platform/4.3/nodes/jobs/nodes-nodes-jobs.html#nodes-nodes-jobs-creating-cron_nodes-nodes-jobs)
15+
=== "OpenShift"
16+
17+
[Jobs :fontawesome-solid-briefcase:](https://docs.openshift.com/container-platform/4.3/nodes/jobs/nodes-nodes-jobs.html){ .md-button target="_blank"}
18+
[CronJobs :fontawesome-solid-briefcase:](https://docs.openshift.com/container-platform/4.3/nodes/jobs/nodes-nodes-jobs.html#nodes-nodes-jobs-creating-cron_nodes-nodes-jobs){ .md-button target="_blank"}
19+
20+
=== "Kubernetes"
1721

18-
**IKS**
19-
- [Jobs to Completion](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/)
20-
- [Cron Jobs](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/)
21-
- [Automated Tasks with Cron](https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/)
22+
[Jobs to Completion :fontawesome-solid-briefcase:](https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/){ .md-button target="_blank"}
23+
[Cron Jobs :fontawesome-solid-briefcase:](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/){ .md-button target="_blank"}
24+
[Automated Tasks with Cron :fontawesome-solid-briefcase:](https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/){ .md-button target="_blank"}
2225

2326
## References
2427

25-
It computes π to 2000 places and prints it out
28+
_It computes π to 2000 places and prints it out_
29+
2630
```yaml
2731
apiVersion: batch/v1
2832
kind: Job
@@ -32,14 +36,15 @@ spec:
3236
template:
3337
spec:
3438
containers:
35-
- name: pi
36-
image: perl
37-
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
39+
- name: pi
40+
image: perl
41+
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
3842
restartPolicy: Never
3943
backoffLimit: 4
4044
```
4145
42-
Running in parallel
46+
_Running in parallel_
47+
4348
```yaml
4449
apiVersion: batch/v1
4550
kind: Job
@@ -70,12 +75,12 @@ spec:
7075
template:
7176
spec:
7277
containers:
73-
- name: hello
74-
image: busybox
75-
args:
76-
- /bin/sh
77-
- -c
78-
- date; echo Hello from the Kubernetes cluster
78+
- name: hello
79+
image: busybox
80+
args:
81+
- /bin/sh
82+
- -c
83+
- date; echo Hello from the Kubernetes cluster
7984
restartPolicy: OnFailure
8085
```
8186
@@ -151,8 +156,8 @@ spec:
151156

152157
## Activities
153158

154-
| Task | Description | Link |
155-
| --------------------------------| ------------------ |:----------- |
156-
| ***Try It Yourself*** | | |
157-
| Rolling Updates Lab | Create a Rolling Update for your application. | [Rolling Updates](../../../labs/kubernetes/lab6/index.md) |
158-
| Cron Jobs Lab | Using Tekton to test new versions of applications. | [Crons Jobs](../../../labs/kubernetes/lab7/index.md) |
159+
| Task | Description | Link |
160+
| --------------------- | -------------------------------------------------- | :-------------------------------------------------------- |
161+
| **_Try It Yourself_** | | |
162+
| Rolling Updates Lab | Create a Rolling Update for your application. | [Rolling Updates](../../../labs/kubernetes/lab6/index.md) |
163+
| Cron Jobs Lab | Using Tekton to test new versions of applications. | [Crons Jobs](../../../labs/kubernetes/lab7/index.md) |

0 commit comments

Comments
 (0)