95.5k views
4 votes
Kubernetes Rollout History

You are working on the development of a Kubernetes duster. You need to fetch a list of rollout history logs for a specific deployment in your company's namespace. How can this be achieved?
Pick ONE OR MORE options
a.kubect describe rollout history deployment/data-n hacker-company
b.kubecti rollout history deployment datan hacker-company
c.kubectl get rollout history deployment/data-n hacker-company
d.kubectl rollout history deployment/data-n hacker-company

User Zubko
by
8.4k points

1 Answer

5 votes

Option 'a' and 'b' are incorrect because they contain typos or incorrect syntax. The correct command uses kubectl get rollout history` to fetch the history of a deployment.

To fetch a list of rollout history logs for a specific deployment in your company's namespace using Kubernetes, you can use the `kubectl rollout history` command. The correct option is:

c. `kubectl get rollout history deployment/data-n -n hacker-company`

Here's a step-wise answer to achieve this:

1. Open a terminal or command prompt.

2. Use the `kubectl` command to fetch the rollout history for a specific deployment in your company's namespace. Replace `data-n` with the name of your deployment, and `-n hacker-company` with the namespace where the deployment is located:

Code:

kubectl get rollout history deployment/data-n -n hacker-company

3. After running this command, you will see a list of rollout history revisions for the specified deployment in the `hacker-company` namespace.

User Igonato
by
7.7k points

Related questions

1 answer
2 votes
189k views
asked Aug 4, 2024 97.7k views
Eugene Tusmenko asked Aug 4, 2024
by Eugene Tusmenko
7.9k points
1 answer
2 votes
97.7k views
asked Apr 6, 2024 10.4k views
Jacob Dalton asked Apr 6, 2024
by Jacob Dalton
8.5k points
1 answer
5 votes
10.4k views