Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add production mode to k8s #1963

Merged
merged 40 commits into from Dec 15, 2023
Merged

feat: add production mode to k8s #1963

merged 40 commits into from Dec 15, 2023

Conversation

h4ck3rk3y
Copy link
Contributor

@h4ck3rk3y h4ck3rk3y commented Dec 15, 2023

Description:

  1. Services restart on failure like Docker
  2. /kurtosis-data/ is in a PV on k8s so APIC is restartable

Is this change user facing?

YES

Copy link

cloudflare-pages bot commented Dec 15, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 08e74bb
Status: ✅  Deploy successful!
Preview URL: https://74c5e3fe.kurtosis-docs.pages.dev
Branch Preview URL: https://gyani-production.kurtosis-docs.pages.dev

View logs

@h4ck3rk3y h4ck3rk3y changed the title Gyani/production feat: add production mode to k8s Dec 15, 2023
apiContainerContainers, apiContainerVolumes, err := getApiContainerContainersAndVolumes(image, containerPorts, envVarsWithOwnIp, enclaveDataVolumeDirpath)
if err != nil {
return nil, stacktrace.Propagate(err, "An error occurred getting API containers and volumes")
}

apiContainerInitContainers := []apiv1.Container{}

// Data is always persistent we can always restart like Docker
apiContainerRestartPolicy := apiv1.RestartPolicyOnFailure
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@leoporoli Questions here -

This is very similar to what Docker does; and docker always has persistent volume for /kurtosis-data but on Kubernetes that adds time on DO/AWS; on k3s it seems like no time is added

Copy link
Contributor

Choose a reason for hiding this comment

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

we talked about this on Slack and I agree with adding this for all enclaves so far.

@h4ck3rk3y h4ck3rk3y changed the base branch from gyani/persistent-volumes to main December 15, 2023 11:50
@h4ck3rk3y h4ck3rk3y changed the base branch from main to gyani/persistent-volumes December 15, 2023 12:59
@h4ck3rk3y h4ck3rk3y changed the base branch from gyani/persistent-volumes to main December 15, 2023 13:00
@h4ck3rk3y h4ck3rk3y merged commit b0e27e6 into main Dec 15, 2023
33 of 36 checks passed
@h4ck3rk3y h4ck3rk3y deleted the gyani/production branch December 15, 2023 15:02
github-merge-queue bot pushed a commit that referenced this pull request Dec 18, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.85.49](0.85.48...0.85.49)
(2023-12-18)


### Features

* add production mode to k8s
([#1963](#1963))
([b0e27e6](b0e27e6))
* persistent volumes work on multi node k8s clusters
([#1943](#1943))
([b2fd9f2](b2fd9f2))
* User service K8S ingresses for reverse proxy routing
([#1941](#1941))
([c37dd7f](c37dd7f))


### Bug Fixes

* adding remove logs aggregator container function when it already
exists ([#1974](#1974))
([5d74d16](5d74d16))
* Do not fail if the Traefik config dir path already exists
([#1966](#1966))
([4e6f7d7](4e6f7d7))
* ignore the current status of the service during a start/stop
([#1965](#1965))
([1c4863f](1c4863f))
* refactor the emui components to the shared package
([#1959](#1959))
([a406973](a406973))
* Set the user service K8S ingress labels so it can be found
([#1962](#1962))
([9cc5f77](9cc5f77))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <kurtosisbot@users.noreply.github.com>
Co-authored-by: leoporoli <leandroporoli@gmail.com>
@h4ck3rk3y h4ck3rk3y restored the gyani/production branch January 2, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants