Skip to content

Commit

Permalink
Merge pull request #135 from Phantom-Intruder/apiversion_fixes
Browse files Browse the repository at this point in the history
Fixed issue #112
  • Loading branch information
collabnix committed Apr 16, 2023
2 parents 1a2df53 + 7fa5436 commit b6fa25f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 201/monitoring/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion DaemonSet101/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion DaemonSet101/daemonset.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: prometheus-daemonset
Expand Down
2 changes: 1 addition & 1 deletion Deployment101/blue-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-1.10
Expand Down
2 changes: 1 addition & 1 deletion Deployment101/green-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-1.11
Expand Down
2 changes: 1 addition & 1 deletion Deployment101/nginx-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-test
Expand Down
2 changes: 1 addition & 1 deletion replicaset101/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion secerts_configmaps101/secrets-configmaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6fa25f

Please sign in to comment.