restart container par scaling his deployement

PHOTO EMBED

Wed Feb 10 2021 10:43:10 GMT+0000 (UTC)

Saved by @mikaelmorvan

# get all deployements for a specific namespace
> kubectl get deployments -n rev-1169-provide-staging-and-development-environment-for-dedic
NAME                        READY   UP-TO-DATE   AVAILABLE   AGE
admin-site-gen              1/1     1            1           45m
auth-site-gen               1/1     1            1           45m
banner-site-gen             1/1     1            1           45m
cms-api-site-gen            1/1     1            1           45m
rendering-engine-site-gen   1/1     1            1           45m
styles-service-site-gen     1/1     1            1           45m
# scale it to 0
> kubectl scale deployment banner-site-gen -n rev-1169-provide-staging-and-development-environment-for-dedic --replicas=0
# and the scale it back to 1
> kubectl scale deployment banner-site-gen -n rev-1169-provide-staging-and-development-environment-for-dedic --replicas=1
content_copyCOPY