stenlytu / k8s-training-official Goto Github PK
View Code? Open in Web Editor NEWThe goal of this tutorial is to give you a good understanding of Kubernetes.
The goal of this tutorial is to give you a good understanding of Kubernetes.
your suggestion is using jsonpath. Can you show me the cli to do that
for me, i resolved it by using custom-columns
hadn@master-1:~/github/StenlyTU/pod$ kubectl get node -o custom-columns="IP:.status.addresses[0].address, TYPE:.status.addresses[0].type"
IP TYPE
192.168.2.150 InternalIP
192.168.2.20 InternalIP
The corrected yaml is
apiVersion: apps/v1
kind: Deployment
metadata:
name: blue1
spec:
replicas: 5
selector:
matchLabels:
run: nginx
template:
metadata:
labels:
run: nginx
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: color
operator: In
values:
- blue
I have some corrections/additions I'd like to make. Would you prefer a PR per item or a single PR?
Hi,
Thanks for providing these questions to help with the preparation for CKA exams.
I noticed namespace is being provided for the creation of clusterrole and clusterrole binding resources in question 41. I believe since these are cluster scoped resources, it will not be necessary to provide the namespace.
there is mistype content of yaml file
The correct content yaml should be:
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: blue
name: blue
namespace: cka
spec:
replicas: 5
selector:
matchLabels:
app: blue
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: blue
spec:
affinity: # => miss indent
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: color
operator: In
values:
- blue
containers:
- image: nginx:1.18-alpine
name: nginx
ports:
- containerPort: 80
resources: {}
status: {}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.