[ Kube 47 ] Using PodPreset in Kubernetes

preview_player
Показать описание
In this video I will walk you through PodPresets, which are objects for injecting certain information into pods at creation time. The information can include secrets, volumes, volume mounts, and environment variables

Justmeandeopensource Kubernetes Github repo:

Injecting data into Pod using PodPreset

Hope you found the video useful. If you liked it please share it with your friends. Also don't forget to subscribe to my channel. For any questions/issues/feedback, please leave me a comment and I will be happy to respond to you.

Thanks for watching this video. Stay tuned for more Kubernetes related videos in my channel.

If you wish to support me:
Рекомендации по теме
Комментарии
Автор

Dear Venkat, thank you !! I liked the PodPreset tutorial very much. Appreciate for being such a wonderful person to make it a personal mission educating us here. if you ever find your way to Colorado, let me know. I would take you to dinner my dear friend.

mathewkargarzadeh
Автор

I have no word to say Thank you. you're just awesome

tarikurrahaman
Автор

Hi Venkat can u create what is service account vin kubernetes and its use cases???

tamilselvan
Автор

First thank you for your great videos, if you allow me to ask, we have setuped k8s cluster 1.18.5 using kubeadm, i have followed this video and edited kube-apiserver.yaml, but when the apiserver container restarts, it use the old configs, what is the problem in your opinion?

rakanbakir
Автор

do you have any kube videos on DNS and certificate rotation? Also, is it possible to have a single 'container' with multiple images? if yes, could you please share the steps?

RK-wkzn
Автор

Hello and thank you again <3
I did all of your videos from this playlist (Kubernetes Resources) with Minikube and all of them was successfully done, except PorPreset (On Minikube), I googled it and find out there are two ways (add those line in API YAML file as you have taught, and run Minikube start with extra-config) but these two ways didn't work for me, my api-server pod in Kube-system has be en Stopped :(, If it possible to you to make a video or anything will be so useful for me.
Thank you again and again ... <3

MrMadn
Автор

Thanks for video.
I got stuck, When i create Pod using labels match with PodPreset but the Pod no apply the configure, describe the Pod "Annotations: <none>", i follow every single step but doesn't work. 1. deploy kubeadm; 2.add podpreset, runtime; 3. api-server create again. I try again with documents k8s, but have same result. Please take a look and help me!

nhienhao
Автор

Hi
@Just me and Opensource I have enabled podpreset in minikube while starting minikube using below command
minikube start
1.After that i have created podpreset object using this file 12-podpreset-1.yaml file
FYI>>
kubectl get podpreset
NAME CREATED AT
app1-env 2019-09-03T16:59:09Z
2. Created nginx deployment with label role: app1 in pod spec
FYI>> nginx.yml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
role: app1
spec:
containers:
- image: nginx
name: nginx
3. Pod created successfully with out any issue, but i am not seeing environment variable when i login to pod. I am not seeing any annotation when i describe pod
FYI>>
$kubectl describe pod nginx-66fd5fc487-9q6st
Name: nginx-66fd5fc487-9q6st
Namespace: default
Priority: 0
PriorityClassName: <none>
Node: minikube/10.0.2.15
Start Time: Tue, 03 Sep 2019 22:38:20 +0530
Labels: app=nginx
pod-template-hash=66fd5fc487
role=app1
Annotations: <none>
Status: Running
IP: 172.17.0.11
Controlled By: ReplicaSet/nginx-66fd5fc487
Containers:
nginx:


Can you please help me what could be the issue?

phanikumar