【K8S】kubernetes-dashboard.yaml

https://raw.githubusercontent.com/kubernetes/dashboard/v3.0.0-alpha0/charts/kubernetes-dashboard.yaml
以下链接的内容:

由于国内访问不了,找到一些方法下载了这个文件内容,

部署是mages 对象的镜像
WEB
docker.io/kubernetesui/dashboard-web:v1.0.0
API
docker.io/kubernetesui/dashboard-api:v1.0.0
Metrics Scraper
docker.io/kubernetesui/metrics-scraper:v1.0.9

yaml具体内容

# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.################################
### Namespaces
################################apiVersion: v1
kind: Namespace
metadata:name: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard---################################
### cert-manager
################################apiVersion: cert-manager.io/v1
kind: Issuer
metadata:name: selfsignednamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: certmanagerapp.kubernetes.io/part-of: kubernetes-dashboard
spec:selfSigned: {}---################################
### Service Accounts
################################apiVersion: v1
kind: ServiceAccount
metadata:name: kubernetes-dashboardnamespace: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard---################################
### Secrets & Config Maps
################################apiVersion: v1
kind: Secret
metadata:name: kubernetes-dashboard-csrfnamespace: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard
type: Opaque
data:csrf: ""---apiVersion: v1
kind: Secret
metadata:name: kubernetes-dashboard-key-holdernamespace: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard
type: Opaque---kind: ConfigMap
apiVersion: v1
metadata:name: kubernetes-dashboard-settingsnamespace: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard---################################
### Roles & Bindings
################################kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: kubernetes-dashboardnamespace: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard
rules:# Allow Dashboard to get, update and delete Dashboard exclusive secrets.- apiGroups: [ "" ]resources: [ "secrets" ]resourceNames: [ "kubernetes-dashboard-key-holder", "kubernetes-dashboard-csrf" ]verbs: [ "get", "update", "delete" ]# Allow Dashboard to get and update 'kubernetes-dashboard-settings' config map.- apiGroups: [ "" ]resources: [ "configmaps" ]resourceNames: [ "kubernetes-dashboard-settings" ]verbs: [ "get", "update" ]# Allow Dashboard to get metrics.- apiGroups: [ "" ]resources: [ "services/proxy" ]resourceNames: [ "kubernetes-dashboard-metrics-scraper", "http:kubernetes-dashboard-metrics-scraper" ]verbs: [ "get" ]---kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:name: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard
rules:# Allow Metrics Scraper to get metrics from the Metrics server- apiGroups: [ "metrics.k8s.io" ]resources: [ "pods", "nodes" ]verbs: [ "get", "list", "watch" ]---apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:name: kubernetes-dashboardnamespace: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard
roleRef:apiGroup: rbac.authorization.k8s.iokind: Rolename: kubernetes-dashboard
subjects:- kind: ServiceAccountname: kubernetes-dashboardnamespace: kubernetes-dashboard---apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:name: kubernetes-dashboardlabels:app.kubernetes.io/part-of: kubernetes-dashboard
roleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: kubernetes-dashboard
subjects:- kind: ServiceAccountname: kubernetes-dashboardnamespace: kubernetes-dashboard---################################
### Services & Ingresses
################################kind: Service
apiVersion: v1
metadata:name: kubernetes-dashboard-webnamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: kubernetes-dashboard-webapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: webapp.kubernetes.io/version: "v1.0.0"
spec:ports:- name: webport: 8000selector:app.kubernetes.io/name: kubernetes-dashboard-webapp.kubernetes.io/part-of: kubernetes-dashboard---kind: Service
apiVersion: v1
metadata:name: kubernetes-dashboard-apinamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: kubernetes-dashboard-apiapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: apiapp.kubernetes.io/version: "v1.0.0"
spec:ports:- name: apiport: 9000selector:app.kubernetes.io/name: kubernetes-dashboard-apiapp.kubernetes.io/part-of: kubernetes-dashboard---kind: Service
apiVersion: v1
metadata:name: kubernetes-dashboard-metrics-scrapernamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: kubernetes-dashboard-metrics-scraperapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: metricsapp.kubernetes.io/version: "v1.0.9"
spec:ports:- port: 8000targetPort: 8000selector:app.kubernetes.io/name: kubernetes-dashboard-metrics-scraperapp.kubernetes.io/part-of: kubernetes-dashboard---kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:name: kubernetes-dashboardnamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: nginx-ingressapp.kubernetes.io/part-of: kubernetes-dashboardannotations:nginx.ingress.kubernetes.io/ssl-redirect: "true"cert-manager.io/issuer: selfsigned
spec:ingressClassName: nginxtls:- hosts:- localhostsecretName: kubernetes-dashboard-certsrules:- host: localhosthttp:paths:- path: /pathType: Prefixbackend:service:name: kubernetes-dashboard-webport:name: web- path: /apipathType: Prefixbackend:service:name: kubernetes-dashboard-apiport:name: api---################################
### Deployments
################################kind: Deployment
apiVersion: apps/v1
metadata:name: kubernetes-dashboard-apinamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: kubernetes-dashboard-apiapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: apiapp.kubernetes.io/version: "v1.0.0"
spec:replicas: 1revisionHistoryLimit: 10selector:matchLabels:app.kubernetes.io/name: kubernetes-dashboard-apiapp.kubernetes.io/part-of: kubernetes-dashboardtemplate:metadata:labels:app.kubernetes.io/name: kubernetes-dashboard-apiapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: apiapp.kubernetes.io/version: "v1.0.0"spec:securityContext:seccompProfile:type: RuntimeDefaultcontainers:- name: kubernetes-dashboard-apiimage: docker.io/kubernetesui/dashboard-api:v1.0.0imagePullPolicy: IfNotPresentports:- containerPort: 9000name: apiprotocol: TCPargs:- --enable-insecure-login- --namespace=kubernetes-dashboardvolumeMounts:# Create on-disk volume to store exec logs- mountPath: /tmpname: tmp-volumesecurityContext:allowPrivilegeEscalation: falsereadOnlyRootFilesystem: truerunAsUser: 1001runAsGroup: 2001volumes:- name: tmp-volumeemptyDir: {}serviceAccountName: kubernetes-dashboard---kind: Deployment
apiVersion: apps/v1
metadata:name: kubernetes-dashboard-webnamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: kubernetes-dashboard-webapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: webapp.kubernetes.io/version: "v1.0.0"
spec:replicas: 1revisionHistoryLimit: 10selector:matchLabels:app.kubernetes.io/name: kubernetes-dashboard-webapp.kubernetes.io/part-of: kubernetes-dashboardtemplate:metadata:labels:app.kubernetes.io/name: kubernetes-dashboard-webapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: webapp.kubernetes.io/version: "v1.0.0"spec:securityContext:seccompProfile:type: RuntimeDefaultcontainers:- name: kubernetes-dashboard-webimage: docker.io/kubernetesui/dashboard-web:v1.0.0imagePullPolicy: IfNotPresentports:- containerPort: 8000name: webprotocol: TCPvolumeMounts:# Create on-disk volume to store exec logs- mountPath: /tmpname: tmp-volumesecurityContext:allowPrivilegeEscalation: falsereadOnlyRootFilesystem: truerunAsUser: 1001runAsGroup: 2001volumes:- name: tmp-volumeemptyDir: {}serviceAccountName: kubernetes-dashboard---kind: Deployment
apiVersion: apps/v1
metadata:name: kubernetes-dashboard-metrics-scrapernamespace: kubernetes-dashboardlabels:app.kubernetes.io/name: kubernetes-dashboard-metrics-scraperapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: metricsapp.kubernetes.io/version: "v1.0.9"
spec:replicas: 1revisionHistoryLimit: 10selector:matchLabels:app.kubernetes.io/name: kubernetes-dashboard-metrics-scraperapp.kubernetes.io/part-of: kubernetes-dashboardtemplate:metadata:labels:app.kubernetes.io/name: kubernetes-dashboard-metrics-scraperapp.kubernetes.io/part-of: kubernetes-dashboardapp.kubernetes.io/component: metricsapp.kubernetes.io/version: "v1.0.9"spec:securityContext:seccompProfile:type: RuntimeDefaultcontainers:- name: kubernetes-dashboard-metrics-scraperimage: docker.io/kubernetesui/metrics-scraper:v1.0.9imagePullPolicy: IfNotPresentports:- containerPort: 8000protocol: TCPlivenessProbe:httpGet:scheme: HTTPpath: /port: 8000initialDelaySeconds: 30timeoutSeconds: 30volumeMounts:- mountPath: /tmpname: tmp-volumesecurityContext:allowPrivilegeEscalation: falsereadOnlyRootFilesystem: truerunAsUser: 1001runAsGroup: 2001volumes:- name: tmp-volumeemptyDir: {}serviceAccountName: kubernetes-dashboard

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/57454.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Java 输入与输出(I\O)之对象流与对象序列化

什么是Java的对象流? Java对象流是用于存储和读取基本数据类型数据或对象数据的输入输出流。 Java的对象流可分为两种: 1,对象输入流类ObjectInputStream 用于从数据源读取对象数据,它是可以读取基本数据类型数据或对象数据的输…

Spearman相关系数和P值计算的MATLAB代码

% 导入数据 data readtable(data.xlsx);% 获取列名 columnNames data.Properties.VariableNames; numCols width(data);% 初始化Spearman相关系数和P值矩阵 spearmanCorr zeros(numCols); spearmanPValues zeros(numCols);% 计算Spearman相关系数及P值 for i 1:numColsfo…

fdisk - Linux下的磁盘分区利器

文章目录 前言一、安装和启动二、基本命令2.1 查看分区表2.2 删除分区2.3 创建新分区2.4 更改分区类型2.5 其他指令 三、注意事项四、其他相关工具 前言 在Linux系统中,磁盘管理是维护系统性能和数据安全的重要环节。fdisk 是一个强大的命令行工具,专门…

【解决】Linux环境中mysqlclient安装失败问题

问题描述 在Linux系统下安装myslclient报异常。系统为Centos 8 使用 pip install mysqlclient 报出下面的异常 error: subprocess-exited-with-error Getting requirements to build wheel did not run successfully.│ exit code: 1╰─> [30 lines of output]/bin/sh: pkg…

GitHub 上传项目保姆级教程

构建项目仓库 登录 GitHub 并进入主页。点击右上角的 New 按钮,进入创建新仓库页面。输入仓库名称和描述(可选),选择是否公开(Public)或私有(Private)。可以选择是否初始化仓库&…

WPF中设置DataGrid的常用样式

1. 设置DataGrid控件的外观和行为 <!-- 定义一个名为DataGridDefault的样式&#xff0c;专门用于设置DataGrid控件的外观和行为 --> <Style x:Key"DataGridDefault" TargetType"DataGrid"><!-- 设置DataGrid在Grid布局中的行索引为1 -->…

计算机网络:网络层 —— 路由选择与静态路由配置

文章目录 路由选择路由选择的基本概念路由选择算法路由选择策略 路由器的工作原理路由表静态路由配置默认路由特定主机路由 路由选择 路由选择&#xff08;Routing&#xff09;是网络层的一个关键功能&#xff0c;负责在源和目的地之间选择最佳路径&#xff0c;以确保数据包高…

Pytest-Bdd-Playwright 系列教程(5):仅执行测试用例的收集阶段

Pytest-Bdd-Playwright 系列教程&#xff08;5&#xff09;&#xff1a;仅执行测试用例的收集阶段 一、为什么需要仅收集测试用例二、应用场景三、方法详解【方法1】&#xff1a;添加pytest.ini文件的addopts配置项【方法2】&#xff1a;通过命令行参数运行 四、CI/CD 环境下的…

联想笔记本电脑睡眠后打开黑屏解决方法

下载联想机器睡眠无法唤醒修复工具 下载地址&#xff1a;https://tools.lenovo.com.cn/exeTools/detail/id/233/rid/6182522.html 使用完后重启电脑&#xff0c;问题解决。

(11)(2.1.6) Hobbywing DroneCAN ESC(一)

文章目录 前言 1 连接和配置 2 参数说明 前言 具有 CAN 接口&#xff08;including these&#xff09;的业余 ESC 支持 DroneCAN&#xff0c;它允许自动驾驶仪通过 CAN 控制 ESC /电机&#xff0c;并检索单个转速、电压、电流和温度。 具有 CAN 接口&#xff08;including …

AI助力医疗:未来的医生会是机器人吗?

内容概要 在这一场医疗科技的新浪潮中&#xff0c;AI医疗正以前所未有的速度渗透到各个角落。随着技术的飞速进步&#xff0c;人工智能成为了推动医疗领域革新的重要力量。从精准诊断到个性化治疗&#xff0c;AI正在帮助医生们更快速、准确地分析患者的病情&#xff0c;提高了…

HTMLCSS:3D旋转动画机器人摄像头

效果演示 创建了一个3D机器人摄像头效果。 HTML <div class"modelViewPort"><div class"eva"><div class"head"><div class"eyeChamber"><div class"eye"></div><div class&quo…

用 css 实现空列表自动提示 “空状态”

css实现 /* 空列表状态通用css */ .list-auto-empty:empty::after {content: attr(empty);color: gray;margin: 50px auto 0;background-image: url(empty_data.png);background-size: 100%;background-repeat: no-repeat;width: 224px;height: 140px;padding-top: 140px;text…

计算机科学与技术-毕业设计选题推荐

基于特定技术的系统设计与实现 基于深度学习的图像识别系统设计与实现基于区块链的数据安全保护技术研究与实现基于云计算的大数据处理平台设计与开发基于物联网的智能家居系统设计与实现基于机器学习的推荐算法研究与实现 面向实际应用的需求分析与开发 智慧医疗信息系统设…

如何在Linux系统中使用Git进行版本控制

如何在Linux系统中使用Git进行版本控制 Git简介 安装Git 在Debian/Ubuntu系统中安装 在CentOS/RHEL系统中安装 初始化Git仓库 配置全局用户信息 基本的Git命令 添加文件到暂存区 查看状态 提交更改 查看提交历史 工作流 分支管理 切换分支 合并分支 远程仓库 添加远程仓库 推…

大型商场应急响应系统开发:SpringBoot篇

2相关技术 2.1 MYSQL数据库 MySQL是一个真正的多用户、多线程SQL数据库服务器。 是基于SQL的客户/服务器模式的关系数据库管理系统&#xff0c;它的有点有有功能强大、使用简单、管理方便、安全可靠性高、运行速度快、多线程、跨平台性、完全网络化、稳定性等&#xff0c;非常…

记录一次查询优化

一.背景描述 1.1问题和情况 生产环境&#xff0c;有一张按每天一份数据的表&#xff08;下面简称表1&#xff09;&#xff0c;跨天查询较慢&#xff0c;跨月查询甚至超时查询一天内的数据速度不怎么慢查询是分页的表1按照日期做了子分区&#xff0c;一个月一个子分区 1.2造成…

【网络安全 | 漏洞挖掘】逻辑漏洞+无限制爆破实现业务瘫痪

未经许可,不得转载。 文章目录 前言正文前言 目标:target.com,是一个为设计团队服务的工作平台。 该程序允许用户创建账户并组建团队,指定的领导者担任管理员。团队类型包括: 1、免费团队:限于一个项目,最多三份文件。 2、学生团队:项目和文件无限制,学生可免费获…

头歌C语言数据结构课程实验(栈的应用)

第1关&#xff1a;利用栈实现整数的十进制转八进制 本关必读 栈是基础的数据结构&#xff0c;元素操作遵循后进先出的原理。本关卡基于数组存储实现了栈的基本操作。 该方案将栈存储在一片连续空间里&#xff0c;并通过data、top和max三个属性元素。组织成为一个结构&#xf…

Java | Leetcode Java题解之第521题最长特殊序列I

题目&#xff1a; 题解&#xff1a; class Solution {public int findLUSlength(String a, String b) {return !a.equals(b) ? Math.max(a.length(), b.length()) : -1;} }