-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: customize namespace issue to get correct k8s namespace name (#1132)
- Loading branch information
Showing
7 changed files
with
109 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import kam.v1.app_configuration as ac | ||
import kam.v1.workload as wl | ||
import kam.v1.workload.container as c | ||
import kam.v1.workload.container.probe as p | ||
import opsrule as t | ||
import service as svc | ||
import service.container as c | ||
|
||
# base.k declares reusable configurations for all stacks. | ||
helloworld: ac.AppConfiguration { | ||
workload: wl.Service { | ||
workload: svc.Service { | ||
containers: { | ||
"nginx": c.Container { | ||
image: "nginx:v1" | ||
|
@@ -23,22 +21,9 @@ helloworld: ac.AppConfiguration { | |
} | ||
# Run the command "/bin/sh -c echo hi", as defined above, in the directory "/tmp" | ||
workingDir: "/tmp" | ||
# Configure a HTTP readiness probe | ||
readinessProbe: p.Probe { | ||
probeHandler: p.Http { | ||
url: "http://localhost:80" | ||
} | ||
initialDelaySeconds: 10 | ||
} | ||
} | ||
} | ||
# Set the replicas | ||
replicas: 2 | ||
} | ||
|
||
accessories: { | ||
"kusionstack/[email protected]": t.OpsRule { | ||
maxUnavailable: "30%" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# The project basic info | ||
name: testdata | ||
extensions: | ||
- kind: "kubernetesNamespace" | ||
kubernetesNamespace: | ||
namespace: "dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.