StarlingX PTP Notification App
Go to file
Cole Walker 37c15ea4fb Add support for httpGet liveness probes
Updates the locationservice, notificationservice and notificationclient
containers to support ipv6 httpGet liveness probes.

notificationservice-base and notificationservice-basev2:
- Adds health.py which starts a simple http server that runs within the
  daemon. The k8s httpGet liveness probe can query this endpoint to
  verify that the service is running
- Update the daemonset template and values to provide the required info
  for initalizing the new endpoint

locationservice-base:
- Remove unused portions of the locationservice_start.sh config map.
  The location-query-server.py and location-announce.py were never
  active and are not required
- Add locationservice_start.py in order to start the locationservice
  pecan WSGI application with either an ipv4 or ipv6 socket
- Use existing pecan endpoint to respond to liveness probes

notificationclient-base:
- Add notificationclient_start.py to start the notificationclient
  pecan WSGI application with either an ipv4 or ipv6 socket
- Use existing pecan endpoint to respond to liveness probes

Daemonset:
- Add required ip and port environment variables to support liveness
  probes on each container
- Add a conditional section for enabling liveness probes. Disabled by
  default but can be enabled via helm overrides by setting "liveness:
  True"

Misc:
- Re-organized python imports in affected files
- Incremented helm chart version to 2.0.1

Test-plan:
Pass: Verify application build and install
Pass: Verify containers build correctly
Pass: Deploy ptp-notification and verify basic sanity (v1 and v2 get,
subscribe, delete, list)
Pass: Enable httpGet liveness probes for each container and verify
operation
Pass: Verify application removal

Story: 2011090
Task: 49851

Signed-off-by: Cole Walker <cole.walker@windriver.com>
Change-Id: I4671c7f8c67c4869a6d5e3b384eae66d8c57a284
2024-04-16 11:07:15 -04:00
api-ref/source Use all-caps state in O-RAN timing notification 2023-02-10 14:55:46 -03:00
doc Fix tox-docs failing sphinx 2022-05-31 14:33:17 +00:00
helm-charts/custom/ptp-notification-helm Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
locationservice-base Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
notificationclient-base Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
notificationservice-base Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
notificationservice-base-v2 Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
python3-k8sapp-ptp-notification Application versioning based on build release 2023-12-29 12:22:46 -03:00
stx-ptp-notification-helm Auto-increment chart versions 2024-03-05 13:46:22 -07:00
.gitignore Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
.gitreview Added .gitreview 2021-01-19 18:53:24 +00:00
.zuul.yaml Add minimum Kubernetes version supported 2024-02-05 16:45:14 -03:00
bindep.txt Update app Zuul Check Jobs. 2023-12-20 06:36:14 -06:00
centos_stable_docker_images.inc Fix centos image build failure 2023-01-31 16:09:40 -05:00
CONTRIBUTING.rst Added armada manifest and required build files 2021-02-03 17:41:00 -05:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:12:32 -04:00
debian_iso_image.inc ptp-notification-armada-app: update debian_iso_image.inc 2022-11-23 11:24:11 +08:00
debian_pkg_dirs Auto-increment chart versions 2024-03-05 13:46:22 -07:00
debian_stable_docker_images.inc Build Debian container image for notificationservice-base-v1-api 2023-01-30 15:05:15 +00:00
HACKING.rst Added armada manifest and required build files 2021-02-03 17:41:00 -05:00
requirements.txt [PTP] Reduce cpu usage and correct holdover time 2022-10-06 19:27:04 +00:00
test-requirements.txt Update app Zuul Check Jobs. 2023-12-20 06:36:14 -06:00
tox.ini Update app Zuul Check Jobs. 2023-12-20 06:36:14 -06:00