diff --git a/charts/pool-coordinator/Chart.yaml b/charts/pool-coordinator/Chart.yaml deleted file mode 100644 index bd69b52..0000000 --- a/charts/pool-coordinator/Chart.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v2 -name: pool-coordinator -description: A Helm chart for OpenYurt pool-coordinator component - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.3.1 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "1.3.0" diff --git a/charts/pool-coordinator/templates/_helpers.tpl b/charts/pool-coordinator/templates/_helpers.tpl deleted file mode 100644 index db878a7..0000000 --- a/charts/pool-coordinator/templates/_helpers.tpl +++ /dev/null @@ -1,33 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "pool-coordinator.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "pool-coordinator.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "pool-coordinator.labels" -}} -helm.sh/chart: {{ include "pool-coordinator.chart" . }} -{{ include "pool-coordinator.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "pool-coordinator.selectorLabels" -}} -app.kubernetes.io/name: {{ include "pool-coordinator.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} \ No newline at end of file diff --git a/charts/pool-coordinator/templates/pool-coordinator.yaml b/charts/pool-coordinator/templates/pool-coordinator.yaml deleted file mode 100644 index a21b8c8..0000000 --- a/charts/pool-coordinator/templates/pool-coordinator.yaml +++ /dev/null @@ -1,228 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: pool-coordinator-apiserver - namespace: {{ .Release.Namespace }} - annotations: - openyurt.io/topologyKeys: openyurt.io/nodepool - labels: - {{- include "pool-coordinator.labels" . | nindent 4 }} -spec: - type: ClusterIP - ports: - - port: 443 - targetPort: {{ .Values.apiserverSecurePort }} - protocol: TCP - name: https - selector: - {{- include "pool-coordinator.selectorLabels" . | nindent 4 }} ---- -apiVersion: v1 -kind: Service -metadata: - name: pool-coordinator-etcd - namespace: {{ .Release.Namespace }} - annotations: - openyurt.io/topologyKeys: openyurt.io/nodepool - labels: - {{- include "pool-coordinator.labels" . | nindent 4 }} -spec: - type: ClusterIP - ports: - - port: 2379 - targetPort: {{ .Values.etcdPort }} - protocol: TCP - name: https - selector: - {{- include "pool-coordinator.selectorLabels" . | nindent 4 }} ---- -apiVersion: apps.openyurt.io/v1alpha1 -kind: YurtAppDaemon -metadata: - name: pool-coordinator - namespace: {{ .Release.Namespace }} - labels: - {{- include "pool-coordinator.labels" . | nindent 4 }} -spec: - selector: - matchLabels: - {{- include "pool-coordinator.selectorLabels" . | nindent 6 }} - nodepoolSelector: - matchLabels: - openyurt.io/node-pool-type: "edge" - workloadTemplate: - deploymentTemplate: - metadata: - labels: - {{- include "pool-coordinator.labels" . | nindent 10 }} - spec: - replicas: 1 - selector: - matchLabels: - {{- include "pool-coordinator.selectorLabels" . | nindent 12 }} - template: - metadata: - labels: - {{- include "pool-coordinator.labels" . | nindent 14 }} - spec: - containers: - - command: - - kube-apiserver - - --bind-address=0.0.0.0 - - --allow-privileged=true - - --anonymous-auth=true - - --authorization-mode=Node,RBAC - - --client-ca-file=/etc/kubernetes/pki/ca.crt - - --enable-admission-plugins=NodeRestriction - - --enable-bootstrap-token-auth=true - - --disable-admission-plugins=ServiceAccount - - --etcd-cafile=/etc/kubernetes/pki/ca.crt - - --etcd-certfile=/etc/kubernetes/pki/apiserver-etcd-client.crt - - --etcd-keyfile=/etc/kubernetes/pki/apiserver-etcd-client.key - - --etcd-servers=https://127.0.0.1:{{ .Values.etcdPort }} - - --kubelet-client-certificate=/etc/kubernetes/pki/apiserver-kubelet-client.crt - - --kubelet-client-key=/etc/kubernetes/pki/apiserver-kubelet-client.key - - --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname - - --secure-port={{ .Values.apiserverSecurePort }} - - --service-account-issuer=https://kubernetes.default.svc.cluster.local - - --service-account-key-file=/etc/kubernetes/pki/sa.pub - - --service-account-signing-key-file=/etc/kubernetes/pki/sa.key - - --service-cluster-ip-range={{ .Values.serviceClusterIPRange }} - - --tls-cert-file=/etc/kubernetes/pki/apiserver.crt - - --tls-private-key-file=/etc/kubernetes/pki/apiserver.key - image: "{{ .Values.apiserverImage.registry }}/{{ .Values.apiserverImage.repository }}:{{ .Values.apiserverImage.tag }}" - imagePullPolicy: IfNotPresent - livenessProbe: - failureThreshold: 8 - httpGet: - host: 127.0.0.1 - path: /livez - port: {{ .Values.apiserverSecurePort }} - scheme: HTTPS - initialDelaySeconds: 10 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 15 - name: kube-apiserver - readinessProbe: - failureThreshold: 3 - httpGet: - host: 127.0.0.1 - path: /readyz - port: {{ .Values.apiserverSecurePort }} - scheme: HTTPS - periodSeconds: 1 - successThreshold: 1 - timeoutSeconds: 15 - {{- if .Values.apiserverResources }} - resources: - {{- toYaml .Values.apiserverResources | nindent 18 }} - {{- end }} - startupProbe: - failureThreshold: 24 - httpGet: - host: 127.0.0.1 - path: /livez - port: {{ .Values.apiserverSecurePort }} - scheme: HTTPS - initialDelaySeconds: 10 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 15 - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - volumeMounts: - - mountPath: /etc/kubernetes/pki - name: pool-coordinator-certs - readOnly: true - - command: - - etcd - - --advertise-client-urls=https://0.0.0.0:{{ .Values.etcdPort }} - - --listen-client-urls=https://0.0.0.0:{{ .Values.etcdPort }} - - --cert-file=/etc/kubernetes/pki/etcd-server.crt - - --client-cert-auth=true - - --max-txn-ops=102400 - - --data-dir=/var/lib/etcd - - --max-request-bytes=100000000 - - --key-file=/etc/kubernetes/pki/etcd-server.key - - --listen-metrics-urls=http://0.0.0.0:{{ .Values.etcdMetricPort }} - - --snapshot-count=10000 - - --trusted-ca-file=/etc/kubernetes/pki/ca.crt - image: "{{ .Values.etcdImage.registry }}/{{ .Values.etcdImage.repository }}:{{ .Values.etcdImage.tag }}" - imagePullPolicy: IfNotPresent - name: etcd - {{- if .Values.etcdResources}} - resources: - {{- toYaml .Values.etcdResources | nindent 18 }} - {{- end }} - startupProbe: - failureThreshold: 24 - httpGet: - host: 127.0.0.1 - path: /health - port: {{ .Values.etcdMetricPort }} - scheme: HTTP - initialDelaySeconds: 10 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 15 - volumeMounts: - - mountPath: /var/lib/etcd - name: etcd-data - - mountPath: /etc/kubernetes/pki - name: pool-coordinator-certs - readOnly: true - dnsPolicy: ClusterFirst - {{- if .Values.imagePullSecrets }} - imagePullSecrets: - {{ toYaml .Values.imagePullSecrets | nindent 14 }} - {{- end }} - enableServiceLinks: true - hostNetwork: true - preemptionPolicy: PreemptLowerPriority - priority: 2000001000 - priorityClassName: system-node-critical - restartPolicy: Always - schedulerName: default-scheduler - securityContext: - seccompProfile: - type: RuntimeDefault - terminationGracePeriodSeconds: 30 - volumes: - - emptyDir: - medium: Memory - name: etcd-data - - projected: - defaultMode: 420 - sources: - - secret: - name: pool-coordinator-dynamic-certs - - secret: - name: pool-coordinator-static-certs - name: pool-coordinator-certs ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: openyurt:pool-coordinator:node-lease-proxy-client -rules: - - apiGroups: - - "coordination.k8s.io" - resources: - - leases - verbs: - - get - - update ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: openyurt:pool-coordinator:node-lease-proxy-client -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: openyurt:pool-coordinator:node-lease-proxy-client -subjects: - - apiGroup: rbac.authorization.k8s.io - kind: User - name: openyurt:pool-coordinator:node-lease-proxy-client diff --git a/charts/pool-coordinator/values.yaml b/charts/pool-coordinator/values.yaml deleted file mode 100644 index fab7084..0000000 --- a/charts/pool-coordinator/values.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Default values for pool-coordinator. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -nameOverride: "" -apiserverSecurePort: 10270 -apiserverImage: - registry: registry.k8s.io - repository: kube-apiserver - tag: v1.22.0 -apiserverResources: - requests: - cpu: 250m -serviceClusterIPRange: 10.96.0.0/12 -etcdPort: 12379 -etcdMetricPort: 12381 -etcdImage: - registry: registry.k8s.io - repository: etcd - tag: 3.5.0-0 -etcdResources: - limits: - cpu: 200m - memory: 512Mi - requests: - cpu: 100m - memory: 256Mi