Kubernetes 管理 Docker 容器⽆缝对接新的应⽤功能 节省资源,优化硬件资源的使⽤ Minikube 简介 Minikube 可以实现⼀种轻量级的 Kubernetes 集群,通过在本地计算机上创建虚拟机并部署只包含单个节点的简单集群 MacOS 系统安装依赖 安装依赖 # 命令⾏⼯具 brew install kubectl brew install minikube # 如果遇到权限⽂图 sudo chown ⽂件中查看所有可⽤的环境 启动 # 可添加参数 # --vm-driver=hyperkit minikube start minikube dashboard Minikube Dashboard Docker Desktop Dashboard(MasOC) minikube start 回启动⼀个 Docker 容器: 打包 Nodejs 应⽤镜像 创建 Nodejs ClusterIP 10.96.0.1443/TCP 16h 浏览器访问 Service 可以通过minikube Service 命令访问。 minikube service hello-node 会即刻打开浏览器,显示 “Hello World” 消息。 更新 Nodejs 应⽤镜像和服务 修改 Nodejs 程序并出新镜像: 0 码力 | 5 页 | 675.91 KB | 1 年前3
Istio Security AssessmentKubernetes cluster with Istio running within it. Instead, NCC Group used various hosting options (i.e. Minikube, GKE, KOPS) to build reference clusters and test various configurations. These reference architectures Cluster The assessment was performed using a variety of types environments including GCP, AWS, minikube, and GKE but for reference, each of the findings can be found within the reference cluster architecture installation steps used for creating a minikube cluster with the versions of Istio relevant to this assessment. These steps assume a Ubuntu 18.04.4 LTS machine with minikube20 configured to use KVM, and Go installed0 码力 | 51 页 | 849.66 KB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具# Display the current-context oc config current-context # Delete the minikube cluster oc config delete-cluster minikube 第 第 2 章 章 OPENSHIFT CLI (OC) 27 用法示例 用法示例 2.5.1.19. oc config delete-user 用法示例 用法示例 # Delete the context for the minikube cluster oc config delete-context minikube # Delete the minikube user oc config delete-user minikube # List the clusters oc knows about oc 用法示例 用法示例 2.5.1.32. oc create 从文件或 stdin 创建资源。 # Use the context for the minikube cluster oc config use-context minikube # Show merged kubeconfig settings. oc config view # Show merged kubeconfig0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具current-context # Delete the minikube cluster oc config delete-cluster minikube # Delete the context for the minikube cluster oc config delete-context minikube # Delete the minikube user oc config delete-user delete-user minikube # List the clusters that oc knows about oc config get-clusters # List all the contexts in your kubeconfig file oc config get-contexts OpenShift Container Platform 4.10 CLI context oc config unset contexts.foo.namespace # Use the context for the minikube cluster oc config use-context minikube # Show merged kubeconfig settings oc config view # Show merged kubeconfig0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具current-context # Delete the minikube cluster oc config delete-cluster minikube # Delete the context for the minikube cluster oc config delete-context minikube # Delete the minikube user oc config delete-user delete-user minikube OpenShift Container Platform 4.13 CLI 工具 工具 32 2.7.1.20. oc config get-clusters 显示 kubeconfig 中定义的集群 用法示例 用法示例 2.7.1.21. oc config get-contexts 描述一个或多个上下文 用法示例 用法示例 2.7.1.22 context oc config unset contexts.foo.namespace # Use the context for the minikube cluster oc config use-context minikube # Show merged kubeconfig settings oc config view # Show merged kubeconfig0 码力 | 128 页 | 1.11 MB | 1 年前3
Kubernetes开源书 - 周立10,Docker已经原⽣⽀持了Kubernetes。你所要做的只是启⽤Kubernetes即可,如下图: Minikube ⼀些场景下,安装Minikube是个不错的选择。该⽅式适⽤于Windows 10、Linux、macOS 官⽅安装说明⽂档:https://github.com/kubernetes/minikube 如何在Windows 10上运⾏Docker和Kubernetes?:http://dockone 本节中的示例需要安装Heapster。因此,需要先安装Heapster,对于Minikube,执⾏如下操作即可。 minikube addons enable heapster 查看Heapster Service是否已在运⾏: kubectl get services --namespace=kube-system TIPS 按理,对于Minikube,启⽤Heapster addon后,即可在Dashbo addon后,即可在Dashboard上看到各种资源的CPU占⽤等指标。然⽽,对 于 minikube 0.22.x ,在Dashboard上⽆法看到,可使⽤如下命令,直接查询Grafana监控界⾯: minikube addons open heapster 相关Issue:https://github.com/kubernetes/minikube/issues/2013 限制CPU分配 示例 cpu-request-limit0 码力 | 135 页 | 21.02 MB | 1 年前3
Kubernetes Use it, Contribute to it, and Enjoy it!Local-machine Solutions local-up-cluster kubeadm Minikube microk8s kubeadm-dind-cluster Local-machine Solutions https://github.com/kubernetes/minikube https://github.com/kubernetes/kubernetes/blob/ https://github.com/kubernetes-sigs/kubeadm-dind-cluster https://microk8s.io/ local-up-cluster Minikube Kubeadm kubeadm-dind-cluster microk8s My machine can't run Kubernetes... Oops ! Online playgrounds0 码力 | 45 页 | 3.11 MB | 1 年前3
VMware SIG Intro to the vSphere Cloud Providerfunctionality on top of core Kubernetes. Minikube driver for Fusion and Workstation • Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside0 码力 | 12 页 | 425.38 KB | 1 年前3
The Vitess 7.0 Documentationused with Minikube to deploy Vitess clusters using Helm. Prerequisites Before we get started, let’s get a few things out of the way: 1. Install Minikube and start a Minikube engine: minikube start 2 steps show how to get started using Minikube: Prerequisites Before we get started, let’s get a few things out of the way: 1. Install Minikube and start a Minikube engine. We recommend using Kubernetes Kubernetes 1.14, as this is a common denom- inator across public clouds: bash minikube start --kubernetes-version=v1.14.10 --cpus=8 --memory=11000 --disk-size=50g If you do not have a machine with 11GB of memory0 码力 | 254 页 | 949.63 KB | 1 年前3
The Vitess 5.0 Documentationcontributing to Vitess. Run Vitess on Kubernetes This tutorial demonstrates how Vitess can be used with Minikube to deploy Vitess clusters. {{< warning >}} Kubernetes 1.16 or Helm 3 are not yet supported. We Prerequisites Before we get started, let’s get a few things out of the way: 1. Install Minikube Start a Minikube engine: minikube start --kubernetes-version v1.15.0 --cpus=4 --memory=5000. Note the additional vttablet and MySQL instances will be launched. These require more resources than the defaults used by Minikube. 2. Install kubectl and ensure it is in your PATH. For example on Linux: curl -LO https://storage0 码力 | 206 页 | 875.06 KB | 1 年前3
共 25 条
- 1
- 2
- 3













