Documentation ¶
Index ¶
- Constants
- Variables
- func CheckKubeSphereStatus(mgr *manager.Manager)
- func DeployKubeSphere(mgr *manager.Manager) error
- func DeployKubeSphereStep(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
- func DeployLocalVolume(mgr *manager.Manager) error
- func DeployLocalVolumeForCluster(mgr *manager.Manager, _ *kubekeyapiv1alpha1.HostCfg) error
- func GenerateKubeSphereYaml(repo, version string) (string, error)
- func ResultNotes(incluster bool) error
Constants ¶
View Source
const ( V2_1_1 = `` /* 1533-byte string literal not displayed */ V3_0_0 = `` /* 1441-byte string literal not displayed */ V3_1_0 = `` /* 2566-byte string literal not displayed */ )
Variables ¶
View Source
var ( KubeSphereTempl = template.Must(template.New("KubeSphere").Parse( dedent.Dedent(` --- apiVersion: v1 kind: Namespace metadata: name: kubesphere-system --- apiVersion: v1 kind: ServiceAccount metadata: name: ks-installer namespace: kubesphere-system --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: clusterconfigurations.installer.kubesphere.io spec: group: installer.kubesphere.io versions: - name: v1alpha1 served: true storage: true scope: Namespaced names: plural: clusterconfigurations singular: clusterconfiguration kind: ClusterConfiguration shortNames: - cc --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ks-installer rules: - apiGroups: - "" resources: - '*' verbs: - '*' - apiGroups: - apps resources: - '*' verbs: - '*' - apiGroups: - extensions resources: - '*' verbs: - '*' - apiGroups: - batch resources: - '*' verbs: - '*' - apiGroups: - rbac.authorization.k8s.io resources: - '*' verbs: - '*' - apiGroups: - apiregistration.k8s.io resources: - '*' verbs: - '*' - apiGroups: - apiextensions.k8s.io resources: - '*' verbs: - '*' - apiGroups: - tenant.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - certificates.k8s.io resources: - '*' verbs: - '*' - apiGroups: - devops.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - monitoring.coreos.com resources: - '*' verbs: - '*' - apiGroups: - logging.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - jaegertracing.io resources: - '*' verbs: - '*' - apiGroups: - storage.k8s.io resources: - '*' verbs: - '*' - apiGroups: - admissionregistration.k8s.io resources: - '*' verbs: - '*' - apiGroups: - policy resources: - '*' verbs: - '*' - apiGroups: - autoscaling resources: - '*' verbs: - '*' - apiGroups: - networking.istio.io resources: - '*' verbs: - '*' - apiGroups: - config.istio.io resources: - '*' verbs: - '*' - apiGroups: - iam.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - notification.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - auditing.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - events.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - core.kubefed.io resources: - '*' verbs: - '*' - apiGroups: - installer.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - storage.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - security.istio.io resources: - '*' verbs: - '*' - apiGroups: - monitoring.kiali.io resources: - '*' verbs: - '*' - apiGroups: - kiali.io resources: - '*' verbs: - '*' - apiGroups: - networking.k8s.io resources: - '*' verbs: - '*' - apiGroups: - kubeedge.kubesphere.io resources: - '*' verbs: - '*' - apiGroups: - types.kubefed.io resources: - '*' verbs: - '*' --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: ks-installer subjects: - kind: ServiceAccount name: ks-installer namespace: kubesphere-system roleRef: kind: ClusterRole name: ks-installer apiGroup: rbac.authorization.k8s.io --- apiVersion: apps/v1 kind: Deployment metadata: name: ks-installer namespace: kubesphere-system labels: app: ks-install version: {{ .Tag }} spec: replicas: 1 selector: matchLabels: app: ks-install version: {{ .Tag }} template: metadata: labels: app: ks-install version: {{ .Tag }} spec: serviceAccountName: ks-installer containers: - name: installer image: {{ .Repo }}/ks-installer:{{ .Tag }} imagePullPolicy: Always volumeMounts: - mountPath: /etc/localtime name: host-time volumes: - hostPath: path: /etc/localtime type: "" name: host-time `))) )
Functions ¶
func CheckKubeSphereStatus ¶
func DeployKubeSphere ¶
func DeployKubeSphereStep ¶
func DeployKubeSphereStep(mgr *manager.Manager, node *kubekeyapiv1alpha1.HostCfg) error
func DeployLocalVolume ¶
func DeployLocalVolumeForCluster ¶
func DeployLocalVolumeForCluster(mgr *manager.Manager, _ *kubekeyapiv1alpha1.HostCfg) error
func GenerateKubeSphereYaml ¶
func ResultNotes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.