--- # Source: opensearch-dashboards/templates/serviceaccount.yaml apiVersion: v1 kind: ServiceAccount metadata: name: release-name-opensearch-dashboards-dashboards namespace: logging labels: app.kubernetes.io/name: opensearch-dashboards app.kubernetes.io/instance: release-name app.kubernetes.io/version: "2.11.1" --- # Source: opensearch-dashboards/templates/rolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/name: opensearch-dashboards app.kubernetes.io/instance: release-name app.kubernetes.io/version: "2.11.1" name: release-name-opensearch-dashboards-dashboards-rolebinding namespace: logging roleRef: kind: Role name: release-name-opensearch-dashboards-dashboards apiGroup: rbac.authorization.k8s.io subjects: - kind: ServiceAccount name: release-name-opensearch-dashboards-dashboards namespace: logging --- # Source: opensearch-dashboards/templates/service.yaml apiVersion: v1 kind: Service metadata: name: release-name-opensearch-dashboards namespace: logging labels: app.kubernetes.io/name: opensearch-dashboards app.kubernetes.io/instance: release-name app.kubernetes.io/version: "2.11.1" spec: type: ClusterIP ports: - port: 5601 protocol: TCP name: http targetPort: 5601 selector: app: opensearch-dashboards release: "release-name" --- # Source: opensearch-dashboards/templates/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: release-name-opensearch-dashboards namespace: logging labels: app.kubernetes.io/name: opensearch-dashboards app.kubernetes.io/instance: release-name app.kubernetes.io/version: "2.11.1" spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: opensearch-dashboards release: "release-name" template: metadata: labels: app: opensearch-dashboards release: "release-name" annotations: spec: securityContext: {} serviceAccountName: release-name-opensearch-dashboards-dashboards volumes: containers: - name: dashboards securityContext: capabilities: drop: - ALL runAsNonRoot: true runAsUser: 1000 #image: "opensearchproject/opensearch-dashboards:2.13.0" image: "opensearchproject/opensearch-dashboards:2.11.1" imagePullPolicy: "IfNotPresent" readinessProbe: failureThreshold: 10 initialDelaySeconds: 10 periodSeconds: 20 successThreshold: 1 tcpSocket: port: 5601 timeoutSeconds: 5 livenessProbe: failureThreshold: 10 initialDelaySeconds: 10 periodSeconds: 20 successThreshold: 1 tcpSocket: port: 5601 timeoutSeconds: 5 startupProbe: failureThreshold: 20 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: 5601 timeoutSeconds: 5 env: - name: OPENSEARCH_HOSTS value: "https://10.163.1.66:9200" #value: "https://opensearch-cluster-master:9200" - name: SERVER_HOST value: "0.0.0.0" #- name: SERVER_BASEPATH # value: "/os" - name: OPENSEARCH_USERNAME value: "admin" - name: OPENSEARCH_PASSWORD value: "admin" ports: - containerPort: 5601 name: http protocol: TCP resources: limits: cpu: 100m memory: 512M requests: cpu: 100m memory: 512M #volumeMounts: