运维八一 运维八一
首页
运维杂记
编程浅尝
周积跬步
专栏
生活
关于
收藏
  • 分类
  • 标签
  • 归档
Source (opens new window)

运维八一

运维,运维!
首页
运维杂记
编程浅尝
周积跬步
专栏
生活
关于
收藏
  • 分类
  • 标签
  • 归档
Source (opens new window)
  • Devops笔记

  • Kubernetes

  • 运维监控系统

  • go分布式爬虫

  • Linux性能优化

  • 夜莺(nightingale)开源观测平台

  • kubernetes-network-policy-recipes

    • create-cluster
      • Create a cluster
    • deny-all-traffic-to-an-application
    • allow-all-traffic-to-an-application
    • limit-traffic-to-an-application
    • deny-all-non-whitelisted-traffic-in-the-namespace
    • deny-traffic-from-other-namespaces
    • allow-traffic-from-all-namespaces
    • allow-traffic-from-a-namespace
    • allow-traffic-from-some-pods-in-another-namespace
    • allow-external-traffic
    • allow-traffic-only-to-a-port
    • allowing-traffic-with-multiple-selectors
    • deny-egress-traffic-from-an-application
    • deny-all-non-whitelisted-traffic-from-the-namespace
    • deny-external-egress-traffic
    • README
  • 专栏
  • kubernetes-network-policy-recipes
lyndon
2024-02-26
目录

create-cluster

# Create a cluster

Most of the Kubernetes installation methods out there do not get you a cluster with Network Policies (opens new window) feature. You manually need to install and configure a Network Policy provider such as Weave Net or Calico.

Google Kubernetes Engine (GKE) (opens new window) easily lets you get a Kubernetes cluster with Network Policies feature. You do not need to install a network policy provider yourself, as GKE configures Calico as the networking provider for you. (This feature is generally available as of GKE v1.10.)

To create a GKE cluster named np with Network Policy feature enabled, run:

gcloud container clusters create np \
    --enable-network-policy \
    --zone us-central1-b

This will create a 3-node Kubernetes cluster on Kubernetes Engine and turn on the Network Policy feature.

Once you complete this tutorial, you can delete the cluster by running:

gcloud container clusters delete -q --zone us-central1-b np
上次更新: 2024/02/26, 10:14:04
夜莺功能介绍
deny-all-traffic-to-an-application

← 夜莺功能介绍 deny-all-traffic-to-an-application→

最近更新
01
ctr和crictl显示镜像不一致
03-13
02
alpine镜像集成常用数据库客户端
03-13
03
deny-all-traffic-to-an-application
02-26
更多文章>
Theme by Vdoing | Copyright © 2015-2024 op81.com
苏ICP备18041258号-2
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式