From 7fa54360ed12912b1d2fcec62131fb6ba5cdc309 Mon Sep 17 00:00:00 2001 From: Phantom-Intruder Date: Wed, 12 Apr 2023 16:33:31 +0530 Subject: [PATCH] Fixed issue #112 --- 201/monitoring/prometheus.md | 2 +- DaemonSet101/README.md | 2 +- DaemonSet101/daemonset.yml | 2 +- Deployment101/blue-deploy.yaml | 2 +- Deployment101/green-deploy.yaml | 2 +- Deployment101/nginx-test.yml | 2 +- replicaset101/README.md | 2 +- secerts_configmaps101/secrets-configmaps.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/201/monitoring/prometheus.md b/201/monitoring/prometheus.md index cbe5adfc..5fc0566b 100644 --- a/201/monitoring/prometheus.md +++ b/201/monitoring/prometheus.md @@ -48,7 +48,7 @@ We should create a config map with all the prometheus scrape config and alerting 1. Create a file named prometheus-deployment.yaml and copy the following contents onto the file. In this configuration, we are mounting the Prometheus config map as a file inside /etc/prometheus. It uses the official Prometheus image from docker hub. ``` -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: prometheus-deployment diff --git a/DaemonSet101/README.md b/DaemonSet101/README.md index fe18af54..b1629799 100644 --- a/DaemonSet101/README.md +++ b/DaemonSet101/README.md @@ -71,7 +71,7 @@ Labels: name=prometheus-exporter tier=monitoring Annotations: deprecated.daemonset.template.generation: 1 kubectl.kubernetes.io/last-applied-configuration: - {"apiVersion":"extensions/v1beta1","kind":"DaemonSet","metadata":{"annotations":{},"name":"prometheus-daemonset","namespace":"default"},"s... + {"apiVersion":"apps/v1","kind":"DaemonSet","metadata":{"annotations":{},"name":"prometheus-daemonset","namespace":"default"},"s... Desired Number of Nodes Scheduled: 1Current Number of Nodes Scheduled: 1 Number of Nodes Scheduled with Up-to-date Pods: 1 Number of Nodes Scheduled with Available Pods: 1 diff --git a/DaemonSet101/daemonset.yml b/DaemonSet101/daemonset.yml index b62263e8..533710fc 100644 --- a/DaemonSet101/daemonset.yml +++ b/DaemonSet101/daemonset.yml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: DaemonSet metadata: name: prometheus-daemonset diff --git a/Deployment101/blue-deploy.yaml b/Deployment101/blue-deploy.yaml index 72301036..81f0d2e1 100644 --- a/Deployment101/blue-deploy.yaml +++ b/Deployment101/blue-deploy.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: nginx-1.10 diff --git a/Deployment101/green-deploy.yaml b/Deployment101/green-deploy.yaml index ee3f3e65..3be75a09 100644 --- a/Deployment101/green-deploy.yaml +++ b/Deployment101/green-deploy.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: nginx-1.11 diff --git a/Deployment101/nginx-test.yml b/Deployment101/nginx-test.yml index 30872991..f706c6d0 100644 --- a/Deployment101/nginx-test.yml +++ b/Deployment101/nginx-test.yml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: nginx-test diff --git a/replicaset101/README.md b/replicaset101/README.md index 67bfd88f..e9d9b1e1 100644 --- a/replicaset101/README.md +++ b/replicaset101/README.md @@ -81,7 +81,7 @@ The first part of the command will get all the pod information, which may be too ``` ownerReferences: - - apiVersion: extensions/v1beta1 + - apiVersion: apps/v1 blockOwnerDeletion: true controller: true kind: ReplicaSet diff --git a/secerts_configmaps101/secrets-configmaps.md b/secerts_configmaps101/secrets-configmaps.md index 822e5aaa..0957d0d6 100644 --- a/secerts_configmaps101/secrets-configmaps.md +++ b/secerts_configmaps101/secrets-configmaps.md @@ -79,7 +79,7 @@ kubectl get secrets,configmaps Secrets and ConfigMaps can be mounted as volume within a pod. For the nginx pod, we will need to mount the secrets as nginx-certs, and the ConfigMap as a nginx-config. First, thoug, we need to write a Deployment for nginx, so we have something to work with. Create a file named "nginx-ssl-deployment.yaml" with the following: ``` -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: nginx