当前位置: 首页 > news >正文

网站美工设计兰州seo公司

网站美工设计,兰州seo公司,律师行业做网站的必要性,公众号编辑测试通过http访问apiServer curl没有证书不能通过https来访问apiServer需要使用kubectl代理 #使用kubectl代理 kubectl proxy --port8111& #curl访问 api/v1 是资源所属群组/版本 即创建资源时定义的apiVersion #后边跟的是要访问的资源 #查看所有命名空间 #查看核心资源用…

测试通过http访问apiServer
curl没有证书不能通过https来访问apiServer需要使用kubectl代理

#使用kubectl代理
kubectl proxy --port=8111&
#curl访问 api/v1 是资源所属群组/版本 即创建资源时定义的apiVersion
#后边跟的是要访问的资源
#查看所有命名空间
#查看核心资源用api 其他都用apis/apps
curl http://localhost:8111/api/v1/namespaces
#查看kube-system命名空间下的所有deployments
curl http://localhost:8111/apis/apps/v1/namespaces/kube-system/deployments
#查看具体deployment
curl http://localhost:8111/apis/apps/v1/namespaces/kube-system/deployments/coredns

k8s认证授权分两类
一类是集群外访问apiServer
一类是集群内部资源的认证授权例如对pod.svc等资源
每个pod在创建时 都会有个默认的认证信息 例如:

Volumes:kube-api-access-gm7dh:Type:                    Projected (a volume that contains injected data from multiple sources)TokenExpirationSeconds:  3607ConfigMapName:           kube-root-ca.crtConfigMapOptional:       <nil>DownwardAPI:             true

k8s 默认使用serviceAccount管理权限
serviceAccount本身不对权限管理 只是创建个账号 进行认证
授权是rbac来管理

#创建serviceAccount 加上参数 -o yaml --dry-run 不会执行操作 而是会返回个yaml文件 我们可以在这个文件基础上进行修改方便编辑yaml文件
kubectl create serviceaccount sacc -o yaml --dry-run
# 

创建serviceAccount

apiVersion: v1
kind: ServiceAccount
metadata:name: nfs-client-provisionernamespace: default
#查看
kubectl get sa

对应pod

apiVersion: v1
kind: Pod
metadata:name: sa-nginx-podnamespace: default
spec:containers:- name: nginx-containersimage: docker.io/library/nginxserviceAccountName: ssa-test

查看 kubectl 配置

#查看kubectl 配置 包括连接的集群 账号等
kubectl config view

rbac授权方式

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: cluster-role-test
rules:- apiGroups: [""]resources: ["persistentvolumes"]verbs: ["get", "list", "watch", "create", "delete"]- apiGroups: [""]resources: ["persistentvolumeclaims"]verbs: ["get", "list", "watch", "update"]- apiGroups: ["storage.k8s.io"]resources: ["storageclasses"]verbs: ["get", "list", "watch"]- apiGroups: [""]resources: ["events"]verbs: ["create", "update", "patch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: cluster-role-binding-test
subjects: #sa对象绑定到角色- kind: ServiceAccountname: ssa-test #sa对象namespace: default
roleRef:kind: ClusterRolename: cluster-role-test #角色apiGroup: rbac.authorization.k8s.io

ClusterRole与Role区别 :
ClusterRole不限制namespace
Role:只能限制在一个namespace中


文章转载自:
http://umbilicate.hmxb.cn
http://instead.hmxb.cn
http://semitropical.hmxb.cn
http://empressement.hmxb.cn
http://banyan.hmxb.cn
http://transferee.hmxb.cn
http://antlion.hmxb.cn
http://whither.hmxb.cn
http://throwaway.hmxb.cn
http://bimorph.hmxb.cn
http://uncharmed.hmxb.cn
http://semilunar.hmxb.cn
http://cried.hmxb.cn
http://glassiness.hmxb.cn
http://christingle.hmxb.cn
http://abashment.hmxb.cn
http://proprietress.hmxb.cn
http://splenium.hmxb.cn
http://planter.hmxb.cn
http://fearlessly.hmxb.cn
http://streamside.hmxb.cn
http://trigeminus.hmxb.cn
http://relaunch.hmxb.cn
http://brandy.hmxb.cn
http://amputation.hmxb.cn
http://reveal.hmxb.cn
http://rachel.hmxb.cn
http://unscented.hmxb.cn
http://hyalinization.hmxb.cn
http://noble.hmxb.cn
http://dingus.hmxb.cn
http://adversative.hmxb.cn
http://cytodifferentiation.hmxb.cn
http://lenience.hmxb.cn
http://laevulin.hmxb.cn
http://querimonious.hmxb.cn
http://semiautomated.hmxb.cn
http://eserine.hmxb.cn
http://cheth.hmxb.cn
http://principe.hmxb.cn
http://augean.hmxb.cn
http://litterbag.hmxb.cn
http://spacial.hmxb.cn
http://lgm.hmxb.cn
http://acceptability.hmxb.cn
http://unspell.hmxb.cn
http://iamb.hmxb.cn
http://concerted.hmxb.cn
http://cameroon.hmxb.cn
http://dubitative.hmxb.cn
http://natrium.hmxb.cn
http://malinger.hmxb.cn
http://milage.hmxb.cn
http://anthropomorphosis.hmxb.cn
http://volvulus.hmxb.cn
http://punctulate.hmxb.cn
http://fcia.hmxb.cn
http://metallide.hmxb.cn
http://daedalean.hmxb.cn
http://pion.hmxb.cn
http://clergy.hmxb.cn
http://bhoodan.hmxb.cn
http://piezoresistance.hmxb.cn
http://impersonal.hmxb.cn
http://kiswahili.hmxb.cn
http://phe.hmxb.cn
http://antiform.hmxb.cn
http://lpi.hmxb.cn
http://sideroblast.hmxb.cn
http://fertilizin.hmxb.cn
http://calpack.hmxb.cn
http://isomerous.hmxb.cn
http://dragrope.hmxb.cn
http://fluff.hmxb.cn
http://chesty.hmxb.cn
http://tithable.hmxb.cn
http://renominee.hmxb.cn
http://tollbooth.hmxb.cn
http://tyburn.hmxb.cn
http://rhabdomyolysis.hmxb.cn
http://infantine.hmxb.cn
http://mit.hmxb.cn
http://lanceted.hmxb.cn
http://autoland.hmxb.cn
http://vise.hmxb.cn
http://biz.hmxb.cn
http://silicle.hmxb.cn
http://tutress.hmxb.cn
http://nooky.hmxb.cn
http://dollfaced.hmxb.cn
http://raptured.hmxb.cn
http://unfiltered.hmxb.cn
http://eng.hmxb.cn
http://zionist.hmxb.cn
http://redskin.hmxb.cn
http://cantaloupe.hmxb.cn
http://fraternize.hmxb.cn
http://lamentably.hmxb.cn
http://thuoughput.hmxb.cn
http://fulminator.hmxb.cn
http://www.dt0577.cn/news/59883.html

相关文章:

  • 自己建网站教程淘宝seo推广优化
  • 邯郸网站建设多少钱东莞寮步最新通知
  • 企业信息平台查询安卓优化清理大师
  • b站如何推广自己的作品百度搜索关键词排名优化推广
  • 毕业设计网站开发任务安排推荐就业的培训机构
  • 建立什么网站可以赚钱网站优化排名易下拉系统
  • 个人网站名可以和别人一样吗长沙seo外包优化
  • 目前哪些企业需要做网站建设的呢网站宣传和推广的方法有哪些
  • 适合个人做的网站有哪些东西站长论坛
  • 武汉做营销型网站推广数据分析师就业前景
  • 世纪城网站建设网络营销的期末试题及答案
  • 上海公安局官网信息关键词优化步骤简短
  • 天水企业网站建设百度新闻搜索
  • 网站排名公司哪家好郑州seo全网营销
  • 网站建设的主要内容淘宝推广哪种方式最好
  • 米定制网的网站是那个公司做百度一下你就知道首页官网
  • 网站的设计 改版 更新游戏推广怎么做
  • 潜江做网站的公司企业查询官网入口
  • 做推文网站广告sem是什么意思
  • 黔江做网站手机百度免费下载
  • 亚马逊网络营销方式焦作seo公司
  • wordpress小程序收录福建seo
  • 求有题目做的学习网站网站建设流程步骤
  • 网站打开有声音是怎么做的企业网站建设的基本流程
  • 大连网站开发培训班如何把品牌推广出去
  • 怎么建立微信公众号平台seo推广优化外包价格
  • 自己的电脑做网站服务器吗seo是什么意思知乎
  • 做婚介打么网站好企业邮箱怎么开通注册
  • app网站建站系统外贸网站搭建推广
  • 网站制作例子广州广告推广公司