10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about...
Transcript of 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about...
![Page 1: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/1.jpg)
10 things you should know about Oracle & Kubernetes
UTOUG Trainingdays13 – 14 March 2019
By Michel Schildmeijer,
![Page 2: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/2.jpg)
1Oracle adopts Kubernetes
![Page 3: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/3.jpg)
Containers
• Application and Infrastructure software more as a whole• : Server One big unit for all• : VM Still One big unit for all but can already share resources• : Container Small unit for one service or application
• Share the OS kernel• Isolate resources
•• :Container based technology
• – CoreOS App Container Image• – – Docker Docker Images Process levek• – – LVE Lightweight virtual environments Thread based•
• ( )Supported by the Open Container Initiative OCI
![Page 4: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/4.jpg)
’ VM s vs Containers
![Page 5: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/5.jpg)
Containers without an orchestrator
![Page 6: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/6.jpg)
The Orchestrator
/Orchestrator conductor
![Page 7: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/7.jpg)
• & ( )Manages orchestrates container processes docker••••••
Kubernetes
compute
network
storage
- Docker style containers
![Page 8: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/8.jpg)
Oracle certified for
Kubernetes
![Page 9: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/9.jpg)
2 & Oracle
Kubernetes“ ”do it yourself
![Page 10: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/10.jpg)
“ ”Kubernetes do it yourself
• Any other or Oracle Cloud Infrastructure•
![Page 11: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/11.jpg)
“ ”Kubernetes do it yourself
• Oracle Cloud Infrastructure•
![Page 12: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/12.jpg)
“ Kubernetes do it yourself
• On premises• ’Addon yum repo s• Enable docker and login to Oracle container registry•
![Page 13: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/13.jpg)
Add Kubernetes repo toyum
<< > / / . . / . > [ ] cat EOF etc yum repos d kubernetes repo kubernetes
> = :// . . . / / / - - baseurl https packages cloud google com yum repos kubernetes el7 x86_64> = > = > = enabled 1 gpgcheck 1 repo_gpgcheck 1> = :// . . . / / / - . > :// . . . / / / - - . gpgkey https packages cloud google com yum doc yum key gpg https packages cloud google com yum doc rpm package key gpg
- ’Add On yum repo s
[ ]ol7_addons= ( )name Oracle Linux $releasever Add ons $basearch= :// . . / / / / / /baseurl http yum oracle com repo OracleLinux OL7 addons $basearch= :/// / / - / - - -gpgkey file etc pki rpm gpg RPM GPG KEY oracle
=gpgcheck 1=enabled 1
If not using Oracle Linux
![Page 14: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/14.jpg)
“ ”Kubernetes do it yourself
• Set to Kubernetes system variables•
# =export KUBE_REPO_PREFIX - - . .container registry ash oracle com/ kubernetes# =echo 'export KUBE_REPO_PREFIX - - . .container registry ash oracle com/ > ~/. kubernetes' bashrc
••• kubeadm init sets the basics•
# kubeadm init
• - . Or run with script kubeadm setup sh• Provided by Oracle with the kubeadm package
•• ( )With terraform see 5•
yum install kubeadm
• yum install
![Page 15: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/15.jpg)
.kubeadm_setup sh
![Page 16: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/16.jpg)
.kubeadm_setup sh
![Page 17: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/17.jpg)
- / / / . /. /sudo cp i etc kubernetes admin conf $HOME kube config ( - ): ( - ) /. /sudo chown $ id u $ id g $HOME kube config = /. /export KUBECONFIG $HOME kube config
= /. / >> /.echo 'export KUBECONFIG $HOME kube config' $HOME bashrc
![Page 18: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/18.jpg)
- - ( - - kubectl n kube system describe $ kubectl n kube system \> - - - ) get secret n kube system o name | grep namespace | grep token
![Page 19: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/19.jpg)
3Kubernetes
for Oracle Container
( )Engine OKE
![Page 20: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/20.jpg)
“ ”, Other than Classic initiated for OCCS OCCS was Docker with a Oracle Cloud frontend
Not Kubernetes managed
… Before Oracle Container Engine
![Page 21: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/21.jpg)
Before… Oracle Container Engine
![Page 22: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/22.jpg)
• Configured Kubernetes Engine in the Cloud• ( )Oracle Cloud Infrastructure OCI
• Setup with Cloud console• Setup with oci interface• Setup with Terraform• “ ”The easy way
•
Oracle Kubernetes Engine
![Page 23: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/23.jpg)
Oracle Kubernetes Container Engine
Oracle Container Pipelines (CI/CD)
Oracle Container Registry
AD 1 AD 3
Node Pool
K8S Cluster
Node Pool
BM
VM
Virtual Network
PV
AD 2
Kubernetes Exposed Service
Standard KubernetesUser Interface; API; Helm, Dashboard and DNS Built-in Oracle Cloud Infrastructure Performance; Highly Available; Security
Oracle Container Engine
(Kubernetes)
Pods
LB
Test
Push
Build
![Page 24: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/24.jpg)
Oracle Container Engine
“ ”, Other than Classic initiated for OCI Setup manual of with Terraform
![Page 25: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/25.jpg)
• Redirect to your local client• & Download configure oci for management••
Oracle Kubernetes Engine
- -- - . . . - - . oci ce cluster create kubeconfig cluster id ocid1 cluster oc1 eu frankfurt 1 aaaaaaaaaftggnbqgq2dam3fmi4tamrvmu3tkyrugmytgyzqgcrtinzzmmzw
- " ( - :// . . / / - / / / / . )" bash c $ curl L https raw githubusercontent com oracle oci cli master scripts install install sh
![Page 26: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/26.jpg)
Oracle KubernetesEngine
![Page 27: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/27.jpg)
Oracle KubernetesEngine
![Page 28: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/28.jpg)
Oracle KubernetesEngine
![Page 29: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/29.jpg)
5, Kubernetes OCI
&Terraform
![Page 30: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/30.jpg)
• Configured Kubernetes Engine• ( )Oracle Cloud Infrastructure OCI• Setup with terraform•
client
/Generate priv pubkeys
Set TF envars
terraform plan
terraform apply
Setup compartment
& Verify tenancy user details
Setup API key
OKE
![Page 31: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/31.jpg)
![Page 32: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/32.jpg)
• Generate keypair and fingerprint for OCI
![Page 33: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/33.jpg)
![Page 34: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/34.jpg)
….Check•
![Page 35: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/35.jpg)
TF Envars•
![Page 36: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/36.jpg)
, TF init plan and apply•
![Page 37: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/37.jpg)
•Wercker• CI on Docker and Kubernetes in the cloud• :Special kubernetes yaml on github
• : - -Add Pipeline deploy to cluster• Add K8S specifics•
••
& : Oracle Kubernetes Engine Wercker CI CD for cloud
![Page 38: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/38.jpg)
GitHub
web
API
Orchestration
Registries
Kubernetes
mgrwrkr1
wrkr2
& Kubernetes Engine Wercker
![Page 39: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/39.jpg)
•Wercker• CI on Docker and Kubernetes in the cloud• :Special kubernetes yaml on github
• : - -Add Pipeline deploy to cluster• Add K8S specifics•
••
& : Oracle Kubernetes Engine Wercker CI CD for cloud
![Page 40: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/40.jpg)
6 & Helm
Tiller
![Page 41: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/41.jpg)
& HelmTiller
Release and Package Management forKubernetes
, Helm is client Tiller runs as Server inKubernetes
![Page 42: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/42.jpg)
:Usually Helm as client on CI CD or any other Tiller runs as Server in Kubernetes
Comparable with YUM for Linux
![Page 43: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/43.jpg)
:// . . / / / / / > .curl https raw githubusercontent com helm helm master scripts get get_helm sh
Easy does it
![Page 44: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/44.jpg)
/ / / . .$HELM_HOME has been configured at home oracle helm
( - ) .Tiller the Helm server side component has been installed into your Kubernetes Cluster
: , .Please note by default Tiller is deployed with an insecure 'allow unauthenticated users' policy , -- - - .To prevent this run `helm init` with the tiller tls verify flag : :/ / . . / /# - - -For more information on securing your installation see https docs helm sh using_helm securing your helm installation
![Page 45: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/45.jpg)
Installed in OKE
As an Add On
![Page 46: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/46.jpg)
- Add Helm repo KubeApps
:// . . /helm repo add bitnami https charts bitnami com bitnami -- - /helm install namespace kubeapps n kubeapps bitnami kubeapps
-kubectl create serviceaccount kubeapps operator - -- = - -- = : -kubectl create clusterrolebinding kubeapps operator clusterrole cluster admin serviceaccount default kubeapps operator
• Add bitnami repo
• RBAC rolebinding
• Accessing KubeApps dashboard " : :// . . . : "echo Kubeapps URL http 127 0 0 1 8080
= ( -- - " = " - ="{. [ ]. . }") export POD_NAME $ kubectl get pods namespace kubeapps l app kubeapps o jsonpath items 0 metadata name - -- : kubectl port forward namespace kubeapps $POD_NAME 8080 8080
![Page 47: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/47.jpg)
KubeApps dashboard
![Page 48: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/48.jpg)
-- - kubectl create serviceaccount namespace kube system tiller " " serviceaccount tiller created
- - -- = - -- = - :kubectl create clusterrolebinding tiller cluster rule clusterrole cluster admin serviceaccount kube system tiller " - - " clusterrolebinding tiller cluster rule created
-- - - - {" ":{" ":{" ":{" ":" "}}}}kubectl patch deploy namespace kube system tiller deploy p ' spec template spec serviceAccount tiller ' " - " deployment tiller deploy patched
: Example Set the proper accounts and install a Jenkins chart
![Page 49: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/49.jpg)
/helm install bitnami jenkins: -NAME messy bobcat : : : LAST DEPLOYED Wed Oct 3 05 56 18 2018
: NAMESPACE default: STATUS DEPLOYED
: Example Set the proper accounts and install a Jenkinschart
= ( -- - - -- "{{ ( . . . ) }}{{.}}{{ }}")export SERVICE_IP $ kubectl get svc namespace default messy bobcat jenkins template range index status loadBalancer ingress 0 end:// /http $SERVICE_IP “
:// . . . /http 130 61 15 94
: ( -- - - - ="{. . - }" -- )echo Password $ kubectl get secret namespace default messy bobcat jenkins o jsonpath data jenkins password | base64 decode
, / , Get the Jenkins URL un pwd exposed by the ingress controller
![Page 50: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/50.jpg)
![Page 51: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/51.jpg)
7 WebLogic Kubernetes
![Page 52: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/52.jpg)
WebLogic Kubernetes Support
• WebLogic and Docker certification□ Docker images, Dockerfiles
• WebLogic 12.2.1.3 Kubernetes • Manage, migrate and deploy
□ Management: WLS K8s Operator□ Monitoring: Exporter for Prometheus□ Migration: Deploy tooling
• Certification on Oracle Cloud□ OCI K8S cluster created with Terraform□ Oracle Kubernetes Engine
•
![Page 53: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/53.jpg)
WebLogic Kubernetes Support
ms1 ms2 ms3 ms4Admin Serve
r
Kubernetes Cluster
podpod pod pod pod
K8S Node K8S Node
WebLogic Cluster
WLS K8S operator
Monitor
Orchestrate
manage
kubectl
loadbalance
![Page 54: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/54.jpg)
• WebLogic running in Docker PODs in Kubernetes □ WebLogic 12.2.1.3+□ Oracle Linux 7 □ Kubernetes 1.7.5, 1.8.0, 1.9.0, and 1.10.0□ Docker 17.03-ce□ Network Fabric - Flannel v0.9.1-amd64
§ Or others like Traefik, Apache□ Config resources (JDBC,JMS,JTA)□ Auto scaling (WLDF and Prometheus)
§
WebLogic Kubernetes Support
![Page 55: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/55.jpg)
Migrate tooling
• Still in an early phase, but this tool provides some strong capabilities for getting your WebLogic domain migrated to Kubernetes:
• Domain introspection to: □ Create a model, a yaml file of your entire domain□ Migrate existing domains and upgrade them to 12.2.1.X□ Tested on 10.3.6 to 12.2.1.X
• Customize to get “Kubernetes ready”• Create WebLogic domain docker images•
![Page 56: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/56.jpg)
WebLogic Helm and Tiller
[******* ~] - -$ kubectl create namespace helm wls cluster
[*******~] - -- - = = - -- - = = - -- - -$ kubectl create secret generic wls secret from literal username ADMIN USERNAME from literal password ADMIN PASSWORD namespace helm wls cluster
![Page 57: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/57.jpg)
WebLogic Helm and Tiller - components
total 20- - - -- : .rw rw r 1 281 Sep 21 02 10 Chart yaml- - - -- : .rw rw r 1 6556 Sep 21 02 10 README md
- : drwxrwxr x 1 786 Sep 21 02 10 templates- - - -- : .rw rw r 1 4442 Sep 21 02 10 values yaml
![Page 58: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/58.jpg)
8 WebLogic Kubernetes
Operator
![Page 59: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/59.jpg)
•
• Extends the K8S api• Configure & manage more complex instances• Why Operators ?
□Stateless (web ) apps are easy to manage, scale□But thougher when it is with stateful□To leverage more experience based knowledge to k8s•
• The operators from the field in a software driven solution!•
Kubernetes Operators
![Page 60: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/60.jpg)
• Some operators:□By CoreOS
§ Etcd –Storing data across cluster§ Prometheus
• Oracle Operators:□MySQL Operator□WebLogic Operator
Kubernetes Operators
![Page 61: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/61.jpg)
• Simpler WebLogic management in Kubernetes• Kubernetes resources are allocated for WebLogic domain(s)• Manages overall WebLogic environment through Kubernetes APIs
□Load Balancer, Network, □Ingress Controllers, □Security, □HA restart, upgrade, scaling□Persistent storage
• Ensures WebLogic best practices are followed• V2.0 planned in 2019•
WebLogic Kubernetes Operator v1,1
![Page 62: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/62.jpg)
• Helm charts for operator install• Persistent volumes for logfiles•
WebLogic Kubernetes Operator v2.0
![Page 63: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/63.jpg)
WebLogic Kubernetes Operator
ms1 ms2 ms3 ms4Admin Serve
r
Kubernetes Cluster
podpod pod pod pod
K8S Node K8S Node
WebLogic Cluster
WLS K8S operator
Orchestrate
manage
kubectl
![Page 64: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/64.jpg)
9 WebLogic Kubernetes
& Prometheus Grafana
![Page 65: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/65.jpg)
• OpenSource tools to monitor your stack• Prometheus feeds Grafana• Grafana visualizes• With k8s yaml files and json configs••••• Or helm install••••Do not forget to install a tiller service account and role
Prometheus & Grafana
- / - .kubectl create f prometheus prometheus kubernetes yml - / - .kubectl create f prometheus grafana kubernetes yml
-- /helm install name prometheus stable prometheus
![Page 66: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/66.jpg)
• Specially use to monitor WLS in k8s• Feeded with WebLogic metrics• Use with the “WebLogic Monitor Exporter”
□Tailored to export specific WebLogic JMX metrics□
• Deploy it on your WebLogic domain•
WLS Prometheus & Grafana
![Page 67: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/67.jpg)
• Gather mbean metrics using a config file□WLDF query
•
WLS Prometheus & Grafana
![Page 68: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/68.jpg)
Prometheus & Grafana
.wlsexporter war
WLDF
Grafana Datasource
\\\\\\\\\\\\\\\\\\\\\\\
![Page 69: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/69.jpg)
Prometheus & Grafana
.wlsexporter war
WLDF
Grafana Datasource
\\\\\\\\\\\\\\\\\\\\\\\
![Page 70: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/70.jpg)
10, … Oracle Kubernetes
and alternatives?
![Page 71: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/71.jpg)
![Page 72: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/72.jpg)
Canonical Kubernetes to the OCI
-Install with conjure up
( ) Canonical Ubuntu K8s on the Oracle Cloud
![Page 73: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/73.jpg)
1..…..Final
![Page 74: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/74.jpg)
• , / The more services the more data exchange networktraffic
• Scale enough resources• ( )( / ) Use HTTP s HTTP 2 for external• / Use TCP UDP for internal• Serialization of applications•M , aybe coherence JSON• -Map application files shareable on a host volume
Some tips and considerations
ms1 ms2 ms3 ms4Admin Server
Kubernetes Cluster
podpod pod pod pod
K8S Node K8S Node
WebLogic Cluster
/ / shareddir app artifacts
![Page 75: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/75.jpg)
Some tips and considerations
• Better use small as possible images• Use base image for as much as possible purposes• Ensure that settings such as JVM heap has been
synchronized to pods•
![Page 76: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/76.jpg)
’ !!Any Questions? Let s keep in touch
•••
•••
••
.mschildmeijer@qualogy com
:// . . / /https community oracle com blogs mnemonic :// . . / / / / -https www qualogy com nl techblog author michelschildmeijer
@MNEMONIC01
. . / /nl linkedin com in mschldmr
![Page 77: 10 things you should know about Oracle & KubernetesDays+2019... · 10 things you should know about Oracle & Kubernetes UTOUG Trainingdays 13 – 14 March 2019 By Michel Schildmeijer,](https://reader036.fdocuments.in/reader036/viewer/2022081503/5e83e2525393814f214f4506/html5/thumbnails/77.jpg)
3 Membership Tiers• Oracle ACE Director• Oracle ACE• Oracle ACE Associate
. / bit ly OracleACEProgram
+ 500 Technical Experts Helping
Peers Globally
:Connect
: Nominate yourself or someone you know . .acenomination oracle com
@oracleace
. /Facebook com oracleaces
- .oracle ace_ww@oracle com