-
-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3667 from telepresenceio/thallgren/intercept-per-…
…port Limit intercepts based on container port number and protocol, not pod.
- Loading branch information
Showing
6 changed files
with
93 additions
and
57 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
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
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,65 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: echo-one | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: echo-both | ||
ports: | ||
- name: one | ||
port: 80 | ||
targetPort: echo-one | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: echo-two | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: echo-both | ||
ports: | ||
- name: two | ||
port: 80 | ||
targetPort: echo-two | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: echo-both | ||
labels: | ||
app: echo-both | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: echo-both | ||
template: | ||
metadata: | ||
labels: | ||
app: echo-both | ||
spec: | ||
containers: | ||
- name: echo-one | ||
image: jmalloc/echo-server | ||
ports: | ||
- name: echo-one | ||
containerPort: 8080 | ||
resources: | ||
limits: | ||
cpu: 50m | ||
memory: 128Mi | ||
- name: echo-two | ||
image: jmalloc/echo-server | ||
ports: | ||
- name: echo-two | ||
containerPort: 8081 | ||
env: | ||
- name: PORT | ||
value: "8081" | ||
resources: | ||
limits: | ||
cpu: 50m | ||
memory: 128Mi |