-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:sync instance version not set (#159)
- Loading branch information
1 parent
7cc9762
commit 8c40f28
Showing
38 changed files
with
286 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy/kubernetes_v1.22/configmap.yaml → ...ubernetes_v1.22/kubernetes/configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
133 changes: 133 additions & 0 deletions
133
deploy/kubernetes_v1.22/kubernetes/polaris-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
--- | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: polaris-sidecar-injector | ||
namespace: polaris-system | ||
labels: | ||
app: sidecar-injector | ||
spec: | ||
minAvailable: 1 | ||
selector: | ||
matchLabels: | ||
app: sidecar-injector | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: polaris-sidecar-injector | ||
namespace: polaris-system | ||
labels: | ||
app: sidecar-injector | ||
spec: | ||
ports: | ||
- port: 443 | ||
targetPort: 9443 | ||
selector: | ||
app: sidecar-injector | ||
--- | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
name: polaris-sidecar-injector | ||
labels: | ||
app: sidecar-injector | ||
webhooks: | ||
- name: polaris.tencent.com | ||
clientConfig: | ||
service: | ||
name: polaris-sidecar-injector | ||
namespace: polaris-system | ||
path: "/inject" | ||
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZpVENDQTNHZ0F3SUJBZ0lVSUJGZmZMeE84K2RNSTNrd3hOcXpibGg4Zm9Vd0RRWUpLb1pJaHZjTkFRRUwKQlFBd05qRTBNRElHQTFVRUF3d3JjRzlzWVhKcGN5MXphV1JsWTJGeUxXbHVhbVZqZEc5eUxuQnZiR0Z5YVhNdApjM2x6ZEdWdExuTjJZekFnRncweU1qQTNNRFF3TXpFNU1UaGFHQTh5TVRJeE1EWXhNREF6TVRreE9Gb3dOakUwCk1ESUdBMVVFQXd3cmNHOXNZWEpwY3kxemFXUmxZMkZ5TFdsdWFtVmpkRzl5TG5CdmJHRnlhWE10YzNsemRHVnQKTG5OMll6Q0NBaUl3RFFZSktvWklodmNOQV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wWjZWSkFjZjdTR1FHNwpYZkNuQXdMdlJtMEs2Q1Z6WUhPTFVRR2ZVSjBEbGFEeUR3c0JOc009Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K | ||
rules: | ||
- operations: ["CREATE"] | ||
apiGroups: [""] | ||
apiVersions: ["v1"] | ||
resources: ["pods"] | ||
admissionReviewVersions: ["v1"] | ||
sideEffects: "None" | ||
failurePolicy: Fail | ||
namespaceSelector: | ||
matchLabels: | ||
polaris-injection: enabled | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
labels: | ||
qcloud-app: polaris-controller | ||
name: polaris-controller | ||
namespace: polaris-system | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
serviceName: polaris-controller | ||
selector: | ||
matchLabels: | ||
k8s-app: polaris-controller | ||
updateStrategy: | ||
rollingUpdate: | ||
partition: 0 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: polaris-controller | ||
app: sidecar-injector | ||
spec: | ||
containers: | ||
- name: polaris-controller | ||
image: polarismesh/polaris-controller:#CONTROLLER_VERSION# | ||
command: ["./polaris-controller"] | ||
args: ["--min-resync-period=60s", | ||
"--leader-elect-namespace=polaris-system", | ||
"--concurrency-polaris-size=100", | ||
"--leader-elect=true" | ||
] | ||
env: | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
imagePullPolicy: Always | ||
volumeMounts: | ||
- mountPath: /polaris-controller/log | ||
name: log | ||
- name: certs | ||
mountPath: /etc/polaris-inject/certs | ||
readOnly: true | ||
- name: inject-config | ||
mountPath: /etc/polaris-inject/inject | ||
readOnly: true | ||
- name: config-volume | ||
mountPath: /etc/polaris-inject/config | ||
readOnly: true | ||
dnsPolicy: ClusterFirst | ||
imagePullSecrets: | ||
- name: qcloudregistrykey | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
terminationGracePeriodSeconds: 30 | ||
serviceAccountName: polaris-controller | ||
volumes: | ||
- name: certs | ||
secret: | ||
secretName: polaris-sidecar-injector | ||
- name: inject-config | ||
configMap: | ||
name: polaris-sidecar-injector | ||
items: | ||
- key: mesh-config | ||
path: mesh-config | ||
- key: dns-config | ||
path: dns-config | ||
- key: values | ||
path: values | ||
- name: config-volume | ||
configMap: | ||
name: polaris-controller-config | ||
- hostPath: | ||
path: /data/polaris-controller/log | ||
type: "DirectoryOrCreate" | ||
name: log |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.