Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Add working examples for running Elasticsearch and Kibana on ope… #263

Merged
merged 4 commits into from
Sep 23, 2019

Conversation

Crazybus
Copy link
Contributor

@Crazybus Crazybus commented Aug 22, 2019

Closes: #15

We don't currently have automated testing for openshift clusters however
these have been manually tested and confirmed to work. For now having
an example on how to do this is nice but in the future we can consider
adding a value to pragmatically disable these features with something
like openshift: true

Special thanks to @geogdog for getting these working and providing the
correct changes needed.

  • Chart version not bumped (the versions are all bumped and released at the same time)
  • README.md updated with any new values or changes
  • Updated template tests in ${CHART}/tests/*.py
  • Updated integration tests in ${CHART}/examples/*/test/goss.yaml

Closes: #15

We don't currently have automated testing for openshift clusters however
these have been manually tested and confirmed to work. For now having
an example on how to do this is nice but in the future we can consider
adding a value to pragmatically disable these features with something
like `openshift: true`

Special thanks to @geogdog for getting these working and providing the
correct changes needed.
@Crazybus Crazybus requested a review from jmlrt September 18, 2019 15:14
helm template --values ./values.yaml ../../

install:
helm upgrade --wait --timeout=600 --install $(RELEASE) --values ./values.yaml ../../ ; \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have ; \ at the end of the line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed! Guessing it was leftover from a copy paste where it is doing multiple commands.

---

fsGroup: null
runAsUser: null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we have the same structure as in elasticsearch/examples/openshift/values.yaml?

securityContext:
  runAsUser: null

podSecurityContext:
  fsGroup: null

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice indeed, but trying to keep the charts identical for every change is quite the challenge. For backwards compatibility reasons the Elasticsearch chart does actually still support fsGroup directly as per #171. These changes could also be backported to Kibana. Wherever possible I have been trying to keep changes in sync and to follow the same style as other charts but this one slipped in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this already the case in kibana/values.yaml#L57-L66?

podSecurityContext:
  fsGroup: 1000

securityContext:
  capabilities:
    drop:
    - ALL
  # readOnlyRootFilesystem: true
  runAsNonRoot: true
  runAsUser: 1000

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are 100% right. I could have sworn this was working before my holiday. When I ran make template just now it is clearly not doing anything. Just pushed a new commit using the correct values.

jmlrt
jmlrt previously approved these changes Sep 20, 2019
Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last ; \ from copy-paste to remove and that's good 😄

kibana/examples/openshift/Makefile Outdated Show resolved Hide resolved
Co-Authored-By: Julien Mailleret <jmlrt@users.noreply.github.com>
Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Crazybus Crazybus changed the title Add working examples for running Elasticsearch and Kibana on openshift Add working examples for running Elasticsearch and Kibana on ope… Sep 23, 2019
@Crazybus Crazybus merged commit 5d10a87 into master Sep 23, 2019
@Crazybus Crazybus deleted the openshift branch September 23, 2019 11:55
@Crazybus Crazybus mentioned this pull request Sep 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Openshift support
2 participants