ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Thank you Sir for this video. You explained it well and it's very useful.
thank you , one small suggestion you can use set paste option in vi for better indentation
But if they have specified not to delete existing pod , how can you do it.
I think you can do whatever makes sense, end goal is important
--------example-pod.yaml-------------------apiVersion: v1kind: Podmetadata: name: example-podspec: containers: - image: nginx name: main-container resources: {} ports: - containerPort: 80 volumeMounts: - name: var-logs mountPath: /usr/share/nginx/html dnsPolicy: Default volumes: - name: var-logs emptyDir: {}------- Sidecar Container info--------- - image: busybox command: ["/bin/sh"] args: ["-c", "while true; do echo echo $(date -u) 'Hi I am from Sidec container' >> /var/log/index.html; sleep 5;done"] name: sidec-container volumeMounts: - name: var-logs mountPath: /var/log
@@sivap2936, what is the exact ask.. can you pls provide it in detail?
@@sivap2936 check Q 15 - Expose a pod by creating a service on port 30002
apiVersion: networking.k8s.io/v1kind: Ingressmetadata: name: minimal-ingress namespace: (provided namespace) annotations: nginx.ingress.kubernetes.io/rewrite-target: /spec: rules: - http: paths: - path: /testpath pathType: Prefix backend: service: name: test port: number: 80
Thank you Sir for this video. You explained it well and it's very useful.
thank you , one small suggestion you can use set paste option in vi for better indentation
But if they have specified not to delete existing pod , how can you do it.
I think you can do whatever makes sense, end goal is important
--------example-pod.yaml-------------------
apiVersion: v1
kind: Pod
metadata:
name: example-pod
spec:
containers:
- image: nginx
name: main-container
resources: {}
ports:
- containerPort: 80
volumeMounts:
- name: var-logs
mountPath: /usr/share/nginx/html
dnsPolicy: Default
volumes:
- name: var-logs
emptyDir: {}
------- Sidecar Container info---------
- image: busybox
command: ["/bin/sh"]
args: ["-c", "while true; do echo echo $(date -u) 'Hi I am from Sidec container' >> /var/log/index.html; sleep 5;done"]
name: sidec-container
volumeMounts:
- name: var-logs
mountPath: /var/log
@@sivap2936, what is the exact ask.. can you pls provide it in detail?
@@sivap2936 check Q 15 - Expose a pod by creating a service on port 30002
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
namespace: (provided namespace)
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /testpath
pathType: Prefix
backend:
service:
name: test
port:
number: 80
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
namespace: (provided namespace)
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /testpath
pathType: Prefix
backend:
service:
name: test
port:
number: 80