diff --git a/node-selection/README.md b/node-selection/README.md index 2c560851..b9b97400 100644 --- a/node-selection/README.md +++ b/node-selection/README.md @@ -23,32 +23,32 @@ You can verify that it worked by re-running `kubectl get nodes` and checking tha Take whatever pod config file you want to run, and add a nodeSelector section to it, like this. For example, if this is my pod config:
-apiVersion: v1beta3 +apiVersion: v1 kind: Pod metadata: + name: nginx labels: env: test - name: nginx spec: containers: - - image: nginx - name: nginx + - name: nginx + image: nginxThen add a nodeSelector like so:
-apiVersion: v1beta3 +apiVersion: v1 kind: Pod metadata: + name: nginx labels: env: test - name: nginx spec: containers: - - image: nginx + - name: nginx + image: nginx imagePullPolicy: IfNotPresent - name: nginx nodeSelector: disktype: ssddiff --git a/node-selection/pod.yaml b/node-selection/pod.yaml index 42a6b39e..134ddae2 100644 --- a/node-selection/pod.yaml +++ b/node-selection/pod.yaml @@ -1,13 +1,13 @@ -apiVersion: v1beta3 +apiVersion: v1 kind: Pod metadata: + name: nginx labels: env: test - name: nginx spec: containers: - - image: nginx + - name: nginx + image: nginx imagePullPolicy: IfNotPresent - name: nginx nodeSelector: disktype: ssd