Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(examples): remove dead code comment#12194

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

coadler
Copy link
Contributor

No description provided.

@coadlerGraphite App
Copy link
ContributorAuthor

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@coadler and the rest of your teammates onGraphiteGraphite

@@ -242,8 +242,7 @@ resource "kubernetes_deployment" "main" {
}

spec {
# replicas = data.coder_workspace.me.start_count
replicas=1
replicas=data.coder_workspace.me.start_count
selector {
match_labels={
"app.kubernetes.io/name"="coder-workspace"
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

[Re: lines 279 to 288]

Also, FWIW, I was using this on a GKE autopilot cluster which doesn't support overprovisioning and my pods only ever got `250m` CPU. I think this should probably be configurable, rather than the only option.

See this comment inline onGraphite.

Copy link
Member

@matifalimatifaliFeb 17, 2024
edited
Loading

Choose a reason for hiding this comment

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

If we are using the count on deployment and the deployment gets scaled to 0. Does the count value on the pod matter?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Oh I see, I'm dumb. Though thinking about it now, I wonder if it would be better to just scale up and down the replicas rather than delete and recreate the deployment each time. I'll just remove the dead code comment for now.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

My issue still stands about the overprovisioning issue, though. Would like your thoughts

@@ -242,8 +242,7 @@ resource "kubernetes_deployment" "main" {
}

spec {
# replicas = data.coder_workspace.me.start_count
replicas=1
replicas=data.coder_workspace.me.start_count
selector {
match_labels={
"app.kubernetes.io/name"="coder-workspace"
Copy link
Member

@matifalimatifaliFeb 17, 2024
edited
Loading

Choose a reason for hiding this comment

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

If we are using the count on deployment and the deployment gets scaled to 0. Does the count value on the pod matter?

@coadlercoadlerforce-pushed thecolin/fixexamplesproperlyshutdownkubernetesdeployment branch from5526932 to78e1c15CompareFebruary 17, 2024 17:34
@coadlercoadler changed the titlefix(examples): properly shutdown kubernetes deploymentfix(examples): remove dead code commentFeb 17, 2024
@coadlercoadlerenabled auto-merge (squash)February 17, 2024 17:36
@coadlercoadler merged commit817cc78 intomainFeb 17, 2024
@coadlercoadler deleted the colin/fixexamplesproperlyshutdownkubernetesdeployment branchFebruary 17, 2024 17:38
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 17, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@matifalimatifalimatifali approved these changes

Assignees

@coadlercoadler

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@coadler@matifali

[8]ページ先頭

©2009-2025 Movatter.jp