kind

Share local directory with Kind Kubernetes Cluster using hostpath

爱⌒轻易说出口 提交于 2021-02-10 14:32:18
问题 I want to share my non-empty local directory with kind cluster. Based on answer here: How to reference a local volume in Kind (kubernetes in docker) I tried few variations of the following: Kind Cluster yaml: kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane extraMounts: - hostPath: /Users/xyz/documents/k8_automation/data/manual/ containerPath: /host_manual extraPortMappings: - containerPort: 30000 hostPort: 10000 Pod yaml: apiVersion: v1 kind: Pod metadata: name:

Share local directory with Kind Kubernetes Cluster using hostpath

前提是你 提交于 2021-02-10 14:31:46
问题 I want to share my non-empty local directory with kind cluster. Based on answer here: How to reference a local volume in Kind (kubernetes in docker) I tried few variations of the following: Kind Cluster yaml: kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane extraMounts: - hostPath: /Users/xyz/documents/k8_automation/data/manual/ containerPath: /host_manual extraPortMappings: - containerPort: 30000 hostPort: 10000 Pod yaml: apiVersion: v1 kind: Pod metadata: name:

kindeditor + syntaxhighlighter 使文章内的插入代码高亮显示

让人想犯罪 __ 提交于 2019-11-27 13:23:43
首先需要在页面中引入所需FE文件: 两个js和一个css文件是必须要引用的文件; shCore.js是syntaxhighlighter插件的基础代码; shAutoloader.js作用 是 syntaxhighlighter插件的代码高亮显示时自动加载所需文件;但是如果目录不正确的话,就会加载失败,解决方法如下SyntaxHighlighter.autoloader.apply()中给出js文件的位置, <?php //syntaxhighlighter代码高亮显示需要加载的js/css====================begin Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . "/js/syntaxhighlighter/styles/shCoreDefault.css"); Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/syntaxhighlighter/scripts/shCore.js'); Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/syntaxhighlighter/scripts