v1.18 support changes

This commit is contained in:
Pat Christopher 2020-10-03 22:54:17 -05:00
parent 90c9f7b3e1
commit 60272a7730
No known key found for this signature in database
GPG Key ID: 298285BC16255C5B
2 changed files with 69 additions and 58 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: ""
@ -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: {}