Merge pull request #95284 from coffeepac/pc/es-addon-1.18

v1.18 support changes
This commit is contained in:
Kubernetes Prow Robot 2020-10-04 02:37:05 -07:00 committed by GitHub
commit 5bfbb98dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 60 deletions

View File

@ -9,9 +9,18 @@ metadata:
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
kubernetes.io/name: "Elasticsearch" kubernetes.io/name: "Elasticsearch"
spec: spec:
clusterIP: None
ports: ports:
- port: 9200 - name: db
port: 9200
protocol: TCP protocol: TCP
targetPort: db targetPort: 9200
- name: transport
port: 9300
protocol: TCP
targetPort: 9300
publishNotReadyAddresses: true
selector: selector:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
sessionAffinity: None
type: ClusterIP

View File

@ -16,13 +16,13 @@ metadata:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
resources: - resources:
- "services" - "services"
- "namespaces" - "namespaces"
- "endpoints" - "endpoints"
verbs: - verbs:
- "get" - "get"
--- ---
kind: ClusterRoleBinding kind: ClusterRoleBinding
@ -34,7 +34,7 @@ metadata:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: elasticsearch-logging name: elasticsearch-logging
namespace: kube-system namespace: kube-system
apiGroup: "" apiGroup: ""
@ -59,12 +59,12 @@ spec:
selector: selector:
matchLabels: matchLabels:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
version: v7.4.2 version: v7.4.2-1
template: template:
metadata: metadata:
labels: labels:
k8s-app: elasticsearch-logging k8s-app: elasticsearch-logging
version: v7.4.2 version: v7.4.2-1
spec: spec:
serviceAccountName: elasticsearch-logging serviceAccountName: elasticsearch-logging
containers: containers:
@ -104,6 +104,8 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: "MINIMUM_MASTER_NODES"
value: "1"
volumes: volumes:
- name: elasticsearch-logging - name: elasticsearch-logging
emptyDir: {} emptyDir: {}