-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcc7d9f
commit 6fff3d9
Showing
6 changed files
with
78 additions
and
142 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- image-object-detection.yml | ||
|
||
labels: | ||
- pairs: | ||
app.kubernetes.io/name: xtreme1 | ||
app.kubernetes.io/instance: xtreme1 | ||
includeSelectors: true | ||
# Kubectl v1.24 不支持,默认为 True | ||
# includeTemplates: true | ||
|
||
images: | ||
- name: image-object-detection | ||
newName: $IMAGE_NAME | ||
# 使用引号防止全数字情况下被当做数字而不是字符串 | ||
newTag: "$IMAGE_TAG" | ||
|
||
patches: | ||
- path: patch/deployment-common.yml | ||
target: | ||
kind: Deployment |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: point-cloud-object-detection | ||
labels: | ||
app.kubernetes.io/component: point-cloud-object-detection | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: point-cloud-object-detection | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: point-cloud-object-detection | ||
spec: | ||
containers: | ||
- name: point-cloud-object-detection | ||
image: point-cloud-object-detection | ||
resources: | ||
requests: | ||
memory: 400Mi | ||
cpu: 100m | ||
nvidia.com/gpu: '1' | ||
limits: | ||
memory: 4Gi | ||
cpu: "1" | ||
nvidia.com/gpu: '1' | ||
ports: | ||
- name: http | ||
containerPort: 5000 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: point-cloud-object-detection | ||
labels: | ||
app.kubernetes.io/component: point-cloud-object-detection | ||
spec: | ||
selector: | ||
app.kubernetes.io/component: point-cloud-object-detection | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 5000 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../base |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../base |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.