-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerCommands.txt
668 lines (496 loc) · 24 KB
/
DockerCommands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
wsl --set-version <distribution name> <versionNumber>
wsl --set-version Ubuntu-20.04 2
https://www.studytrails.com/devops/kubernetes/install-minikube-and-docker-with-virtualbox-on-windows-10-home/
docker-machine create default --virtualbox-no-vtx-check (bios enabled/disabled error)
--------------------------------------
docker-machine rm default (ip issues)
------------------------------------
docker run -it --name webapp -p 80:80 -p 1872 microsoft/iis:latest
docker inspect --format '{{ .NetworkSettings.Networks.nat.IPAddress }}' iis
---------------------------------------------------------------
1.Version
docker -v
------------------------------------------
2.Time to start running the container:
docker container run alpine echo "Hello World"
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
2fdfe1cd78c2: Pull complete
Digest: sha256:ccba511b...
-----------------------------------
3.Run a Process Inside a Container
docker container run centos ping -c 5 127.0.0.1
===================================
Rename
docker rename CONTAINER NEW_NAME
====================================
4.Listing Containers
docker container ls
======================================
5.If you want to list all the containers defined on your system, you can use the command-line parameter -a or -all as follows:
$ docker container ls -a
This will list containers in any state, be it created, running, or exited.
======================================================
6. Sometimes, you may want to just list the IDs of all the containers. For this, you have the -q parameter:
$ docker container ls -q
---------------------------------------------
7.The above command deletes all the containers currently defined on the system, including the stopped ones. The rm command stands for remove
$ docker container rm -f $(docker container ls -a -q)
----------------------------------------------
8.Remove Container
docker container rm <container ID>
-------------------------------------------
9.docker pull
Usage: docker pull <image name>
docker pull ubuntu
This command is used to pull images from the docker repository(hub.docker.com)
--------------------------------------------------
10.docker run
Usage: docker run -it -d <image name>
This command is used to create a container from an image
------------------------------------------------------
11.docker ps
This command is used to list the running containers
-------------------------------------------
12.docker exec
Usage: docker exec -it <container id> bash
This command is used to access the running container
---------------------------------------------
13. docker stop
Usage: docker stop <container id>
This command stops a running container
---------------------------------------------------
14.docker kill
Usage: docker kill <container id>
This command kills the container by stopping its execution immediately. The difference between ‘docker kill’ and ‘docker stop’ is that ‘docker stop’ gives the container time to shutdown gracefully, in situations when it is taking too much time for getting the container to stop, one can opt to kill it
---------------------------------------------
15.docker commit
Usage: docker commit <conatainer id> <username/imagename>
This command creates a new image of an edited container on the local system
--------------------------------------------------------
16.docker login
This command is used to login to the docker hub repository
---------------------------------------------
17.docker push
Usage: docker push <username/image name>
This command is used to push an image to the docker hub repository
---------------------------------------------------
18.docker images
This command lists all the locally stored docker images
========================================================================
19.
docker rm
Usage: docker rm <container id>
----------------------------------------------
20.to remove image
docker rmi image id
-------------------------------------------------------
21.To run docker image
docker run -h 192.168.99.100 -p 7070:7070 -t my-repo/example --name my-repo-image:latest
------------------------------------------------------
clean install dockerfile:build
------------------------------------------
docker run -h 192.168.99.100 -p 6060:6060 -t my-repo/boasample --name my-repo-image1:latest
------------------------------
docker run --name boadb -e MYSQL_ROOT_PASSWORD=vignesh –e MYSQL_DATABASE=boadb –e MYSQL_USER=root -p 3306:3306 mysql/mysql-server:latest
---------------------------------------------------
docker run -h 192.168.99.100 -p 7070:7070 -t my-repo/boakyc --name my-repo-image2:latest
docker-machine url
---------------------------------------------
to delete all docker containers
docker rm $(docker ps -a -q)
docker container prune
--------------------------------------------------
1. copy spring boot project in docker tool box
2. change application.properties url:jdbc:mysql://mysql:3306/demo
username demo_user, password demo_pass
----------------------------------------------------------
3.
docker run --name demo-mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=demo -e MYSQL_USER=demo_user -e MYSQL_PASSWORD=demo_pass -d mysql
------------------------------------------------------------------
4.docker logs demo-mysql
4a. to check mysql status whether running or not
docker exec -it demo-mysql mysql -u demo_user -p
mysql>
---------------------------------------------
docker rmi $(docker images -f "dangling=true" -q) [to remove dangling images]
----------------------------------------------
4c.Mongodb
exception data/journal no space left
docker volume rm $(docker volume ls -qf dangling=true)
docker pull mongo
docker run --name database -d -p 27017:27017 mongo
mongo --host 192.168.99.100
-------------------------------------------
5.cd KYCAPP
mvn clean package dockerfile:build
----------------------------------------------------
6.
docker run -h 192.168.99.100 -p 7070:7070 --name demo-app --link demo-mysql:mysql -d my-repo/boakyc
docker run -h 192.168.99.100 -p 7070:7070 --name demo-app
--link demo-mysql:mysql -d repo1/kycprocess
docker run -h 192.168.99.100 -p 6060:6060 --name demo-app
--link database:mongo -d bankingdockerapp
docker run -h 192.168.99.100 -p 7070:7070 --name customer-app -d customerimg
-------------------------------------------------------------
docker-compose up
replicas
docker stack ps getstartedlab
docker stack services getstartedlab
------------------------------------------------------------
docker hub
https://hub.docker.com/
username:dockerid - not mail id -- eswaribala
password:*****
------------------------------------------------
image name docker id repo tagname
docker tag dockersampling:latest eswaribala/rpsdockertraining:v1
docker tag bankingdockerapp:latest eswaribala/rpscgimsrepo:v1
docker tag globalins eswaribala/globalinsorepo:v1
docker push eswaribala/rpsfdrepo:v1
docker push eswaribala/rpscgimsrepo:v1
docker push eswaribala/globalinsorepo:v1
--------------------------------------------------------------
docker logout
$ docker-machine restart default # Restart the environment
$ eval $(docker-machine env default) # Refresh your environment settings
docker login
-------------------------------------------------------
https://github.com/kubernetes/minikube/releases/tag/v1.11.0
download kubectl.exe
download minikube installer
------------------------------------------------------------
kubectl run nginx --image=eswaribala/rpsdockerhubdemo
-----------------------------------------------
minikube config set memory 4096
minikube config set cpus 2
minikube config set vm-driver virtualbox
minikube start
minikube start -p cluster1
minikube status
--------------------------------------------------------------
minikube -p cluster1 dashboard
--------------------------------------------------------------
kubectl get pods --all-namespaces
------------------------------------------------
kubectl cluster-info
--------------------------------
kubectl version
---------------------------------------------
//volume persistent check
kubectl get pvc
//delete
kubectl delete pvc name
-----------------------------------
kubectl config current-context
---------------------------------------------
kubectl cluster-info
------------------------------------------------
kubectl get nodes
------------------------------------------------
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml
kubectl get all --all-namespaces
kubectl get all -n kubernetes-dashboard
goto g:\localdisk\docker
kubectl apply -f dashboard-adminuser.yaml
kubectl apply -f admin-role-binding.yml
go to powershell run the following cmd
kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | sls admin-user | ForEach-Object { $_ -Split '\s+' } | Select -First 1)
kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | sls eks-admin | ForEach-Object { $_ -Split '\s+' } | Select -First 1)
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}')
token
eyJhbGciOiJSUzI1NiIsImtpZCI6IlNfbmFnUmVianhFaXhsdmNXT3R4SVloSVUwbnFRdXVjZHdBODFvT1FLd28ifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlcm5ldGVzLWRhc2hib2FyZCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJhZG1pbi11c2VyLXRva2VuLTZucHBtIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImFkbWluLXVzZXIiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiIxY2FhNTNlZC04ZDEyLTQwNjQtYjQxZi1hZWIzYjY1NzI4NTUiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6a3ViZXJuZXRlcy1kYXNoYm9hcmQ6YWRtaW4tdXNlciJ9.lXSsLljInIhS40MwUG8i0m_gp2uIfU6lNVipA9PDVaHUWeyylY7FAa8iLfrcUjvC4VtZhGBl88StWcorwu70TFXZW9sAkxKJr_gY6-FdvpqTY7wSbZXl1yexvkahMK37sMgYff6-H_4Lbw988ztdVTlMngfwtECK7fRLcQ3q-0L1PxWx1C1ODrhi8DUEHbiubVq0HZCs-nlIgDIVmXkgWmJt3RsqkWGTb-ociwkBem9gANtSUCbSvwdUaPehwjm_d8JWEGzAZAvuPK4OvPCp7eH1JZ2RcUEnj6YDBBkyAcDKR6xl1RWpemc6kKYYdXwOSpYwlNhHlFgsxn6n3esxxw
-------------------------------------------------------
===========================
kubectl proxy
Starting to serve on 127.0.0.1:8001
http://localhost:8001
======================================================
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
-------------------------------------------------
kubectl get all
--------------------------------------------------
goto apppointmenntdocker project in f:\virtusausjune
kubectl apply -f mysql-pv.yaml
kubectl apply -f mysql-deployment.yaml
kubectl get all
kubectl get services
kubectl describe deployment mysql
kubectl get pods -l app=mysql
kubectl describe pvc mysql-pv-claim
kubectl logs mysql-78dc9c6b94-vfgtq
kubectl get services
get ipaddress
kubectl run -it --rm --image=mysql --restart=Never mysql-client -- mysql -h mysql -ppassword
(don't change password it's ppassword)
create database virtusausappointmentdb;
show databases;
======================================================
Creating the secrets
kubectl create secret generic mysql-root-pass --from-literal=password=password
kubectl create secret generic mysql-user-pass --from-literal=username=demo_user --from-literal=password=demo_pass
kubectl create secret generic mysql-db-url --from-literal=database=virtusausappointmentdb --from-literal=url='jdbc:mysql://mysql:3306/virtusausappointmentdb?useSSL=false
kubectl get secrets
kubectl describe secrets mysql-user-pass
kubectl get persistentvolumes
============================================================
kubectl create deployment demo --image=appointmentapp/v1 --dry-run -o=yaml > deployment.yaml
------------------------------------------------
kubectl create service clusterip demo --tcp=8070:8070 --dry-run -o=yaml >> deployment.yaml
==================================================
kubectl apply -f deployment.yaml
kubectl get pods
kubectl get services
kubectl port-forward service/demo 8070:8070
======================================================
delete service
kubectl delete svc demo
delete pod
kubectl delete pod podname
delete deployment
kubectl delete deployment demo
==================================================
kubectl get nodes
----------------------------------
kubectl get deployments
-------------------------------
kubectl get replicasets
kubectl describe replicasets
minikube config set vm-driver virtualbox
-----------------------------------
kubectl expose deployment dockersampling --type=LoadBalancer
--name=samplingservice
-------------------------------------
kubectl get services samplingservice
kubectl describe services my-service
kubectl describe pods helmdemo-79ccc84f45-hnlnm
kubectl get endpoints
kubectl scale --replicas=1 deployment busybox
kubectl autoscale deployment dockersampling --min=1 --max=4 --cpu-percent=20
minikube addons list
minikube addons enable heapster
kubectl autoscale deployment <deployment-name> --min=2 --max=5 --cpu-percent=80
minikube addons enable ingress
--------------------------------------
kubectl create -f "G:\Local disk\BOAChennai\deployment.yml"
----------------------------------------------
-----------------------------------------------
kubectl apply -f "G:\Local disk\BOAChennai\k8service.yml"
--------------------------------------------------
http://localhost:30001
-------------------------------------
# delete all pods
kubectl delete --all pods --namespace=default
# delete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
---------------------------------------------------
docker volume create my-vol
docker volume ls
docker volume inspect my-vol
[
{
"Driver": "local",
"Labels": {},
"Mountpoint": "/var/lib/docker/volumes/my-vol/_data",
"Name": "my-vol",
"Options": {},
"Scope": "local"
}
]
--------------------------
docker volume rm my-vol
--------------------------------------------------------------
docker search microsoft
docker pull microsoft/aspnetcore
-------------------------------------------------------------
cd aspnetapp
docker build -t aspnetapp .
docker run -it --rm -p 8000:80 aspnetapp
or
docker run -d -p 8000:80 --name testapp-c1 valuesdotnetapp
http://192.168.99.100:8000/
--------------------------------------------------------------
dotnet new webapi
dotnet add package Steeltoe.Discovery.Client -v 1.0.0-rc2
dotnet restore
dotnet build
dotnet run
http://localhost:7074/api/values
---------------------------------------------------------
dotnet new mvc
dotnet add package Steeltoe.Discovery.Client -v 1.0.0-rc2
dotnet restore
--------------------------------------------------------
Cloud Foundry
https://run.pivotal.io/
cf login -a api.run.pivotal.io
cf push fd-pcf-demo
----------------------------------------------------------
docker webapi sql server
$ mkdir dotnet-example
$ cd dotnet-example
$ dotnet new webapi
$ dotnet restore
change default port from 5000 to 7070
$ dotnet run
It is as same as dotnet restore && dotnet run
check in browser http://localhost:7070/api/Values
Add sql server to docker
//$docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=vignesh' -p 1433:1433 --name sqlserver -d microsoft/mssql-server-linux
docker run -e ACCEPT_EULA=Y -e SA_PASSWORD=vignesh -p 1433:1433 --name sqlserver -d microsoft/mssql-server-linux
docker run --memory 4096m -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=vignesh' -p 1433:1433 --name sqlserver -d microsoft/mssql-server-linux
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Vignesh@95" -p 1403:1433 -d --name mssqllinux microsoft/mssql-server-linux
docker exec -it dt-mssql "bash"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Vignesh@95"
SELECT name, database_id, create_date
FROM sys.databases ;
$dotnet add package MongoDB.Driver
$dotnet run
check in browser http://localhost:7070/api/Album
[]
============================================================
if you don't have compose file for sql server
docker run -it --rm -p 7071:7071 --link sqlserver -e SQLSERVER_HOST=sqlserver dotnet-product
=============================================================
docker-compose up
http://192.168.99.100:7072/api/Album
------------------------------------------------------------
docker rm $(docker ps -a -q)
------------------------------------------
docker jenkins
docker pull jenkins/jenkins
docker run -p 8080:8080 --name=jenkins-master jenkins/jenkins
docker stop jenkins-master
docker rm jenkins-master
docker run -p 8080:8080 --name=jenkins-master -d --env JAVA_OPTS="-Xmx8192m" --env JENKINS_OPTS=" --handlerCountMax=300" jenkins/jenkins
--------------------------------------------------------
https://console.aws.amazon.com/cloudformation
Open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation.
From the navigation bar, select a Region that supports Amazon EKS.
Note
Amazon EKS is available in the following Regions at this time:
US West (Oregon) (us-west-2)
US East (N. Virginia) (us-east-1)
US East (Ohio) (us-east-2)
EU (Frankfurt) (eu-central-1)
EU (Stockholm) (eu-north-1)
EU (Ireland) (eu-west-1)
EU (London) (eu-west-2)
EU (Paris) (eu-west-3)
Asia Pacific (Tokyo) (ap-northeast-1)
Asia Pacific (Seoul) (ap-northeast-2)
Asia Pacific (Mumbai) (ap-south-1)
Asia Pacific (Singapore) (ap-southeast-1)
Asia Pacific (Sydney) (ap-southeast-2)
Choose Create stack.
For Choose a template, select Specify an Amazon S3 template URL.
Paste the following URL into the text area and choose Next:
https://amazon-eks.s3-us-west-2.amazonaws.com/cloudformation/2019-02-11/amazon-eks-vpc-sample.yaml
VpcBlock
192.168.0.0/16
The CIDR range for the VPC. This should be a valid private (RFC 1918) CIDR range.
Subnet01Block
192.168.64.0/18
CidrBlock for subnet 01 within the VPC
Subnet02Block
192.168.128.0/18
CidrBlock for subnet 02 within the VPC
Subnet03Block
192.168.192.0/18
CidrBlock for subnet 03 within the VPC. This is used only if the region has more than 2 AZs.
On the Specify Details page, fill out the parameters accordingly, and then choose Next.
Stack name: Choose a stack name for your AWS CloudFormation stack. For example, you can call it eks-vpc.
VpcBlock: Choose a CIDR range for your VPC. You may leave the default value.
Subnet01Block: Choose a CIDR range for subnet 1. You may leave the default value.
Subnet02Block: Choose a CIDR range for subnet 2. You may leave the default value.
Subnet03Block: Choose a CIDR range for subnet 3. You may leave the default value.
(Optional) On the Options page, tag your stack resources. Choose Next.
On the Review page, choose Create.
When your stack is created, select it in the console and choose Outputs.
Open the Amazon EKS console at https://console.aws.amazon.com/eks/home#/clusters.
Choose Create cluster.
Note
If your IAM user does not have administrative privileges, you must explicitly add permissions for that user to call the Amazon EKS API operations. For more information, see Creating Amazon EKS IAM Policies.
On the Create cluster page, fill in the following fields and then choose Create:
Cluster name: A unique name for your cluster.
Kubernetes version: The version of Kubernetes to use for your cluster. By default, the latest available version is selected.
Role ARN: Select the IAM role that you created with Create your Amazon EKS Service Role.
VPC: The VPC you created with Create your Amazon EKS Cluster VPC. You can find the name of your VPC in the drop-down list.
Subnets: The SubnetIds values (comma-separated) from the AWS CloudFormation output that you generated with Create your Amazon EKS Cluster VPC. By default, the available subnets in the above VPC are preselected.
Security Groups: The SecurityGroups value from the AWS CloudFormation output that you generated with Create your Amazon EKS Cluster VPC. This security group has ControlPlaneSecurityGroup in the drop-down name.
Download AWS CLI
AWSCLI64PY3.msi
https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html
In console
aws --version
aws-cli/1.16.113 Python/3.6.0 Windows/10 botocore/1.12.103
aws eks --region region update-kubeconfig --name cluster_name
aws eks --region us-east-2 update-kubeconfig --name rpscluster
https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html
kubectl get svc
Launch and Configure Amazon EKS Worker Nodes
https://console.aws.amazon.com/cloudformation
repeat cluster steps to worker node
create worker node
worker node cluster name is as same as EKS cluster name-->test
----------------------------------------------------------------
Istio
On Kubernetes 1.9:
$ minikube start --memory=8192 --cpus=4 --kubernetes-version=v1.9.4 \
--extra-config=controller-manager.cluster-signing-cert-file="/var/lib/localkube/certs/ca.crt" \
--extra-config=controller-manager.cluster-signing-key-file="/var/lib/localkube/certs/ca.key" \
--extra-config=apiserver.admission-control="NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" \
--vm-driver=`your_vm_driver_choice`
On Kubernetes 1.10:
$ minikube start --memory=8192 --cpus=4 --kubernetes-version=v1.10.0 \
--extra-config=controller-manager.cluster-signing-cert-file="/var/lib/localkube/certs/ca.crt" \
--extra-config=controller-manager.cluster-signing-key-file="/var/lib/localkube/certs/ca.key" \
--vm-driver=`your_vm_driver_choice`
----------------------------------------------------
kubectl create -f install/kubernetes/helm/helm-service-account.yaml
helm init --service-account tiller
helm install install/kubernetes/helm/istio --name istio --namespace istio-system
kubectl get svc -n istio-system
kubectl get pods -n istio-system
kubectl apply -f samples/bookinfo/kube/bookinfo.yaml
kubectl get services
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml
--------------------------------------
Installation steps
minikube start --memory=8192 --cpus=4 --kubernetes-version=v1.10.0
--extra-config=controller-manager.cluster-signing-cert-file="/var/lib/localkube/certs/ca.crt"
--extra-config=controller-manager.cluster-signing-key-file="/var/lib/localkube/certs/ca.key"
--vm-driver=virtualbox
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml
Istio Core
helm template install/kubernetes/helm/istio --name istio --namespace istio-system \
--set security.enabled=false \
--set ingress.enabled=false \
--set gateways.istio-ingressgateway.enabled=false \
--set gateways.istio-egressgateway.enabled=false \
--set galley.enabled=false \
--set sidecarInjectorWebhook.enabled=false \
--set mixer.enabled=false \
--set prometheus.enabled=false \
--set global.proxy.envoyStatsd.enabled=false \
--set pilot.sidecar=false > $HOME/istio-minimal.yaml
Pilot
$kubectl create namespace istio-system
$ kubectl apply -f $HOME/istio-minimal.yaml
Option 2
kubectl apply -f install/kubernetes/helm/helm-service-account.yaml
helm init --service-account tiller
helm install install/kubernetes/helm/istio --name istio-minimal --namespace istio-system \
--set security.enabled=false \
--set ingress.enabled=false \
--set gateways.istio-ingressgateway.enabled=false \
--set gateways.istio-egressgateway.enabled=false \
--set galley.enabled=false \
--set sidecarInjectorWebhook.enabled=false \
--set mixer.enabled=false \
--set prometheus.enabled=false \
--set global.proxy.envoyStatsd.enabled=false \
--set pilot.sidecar=false
kubectl get pods -n istio-system