This file contains hidden or 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
| apiVersion: v1 | |
| kind: Ingress | |
| metadata: | |
| name: test | |
| spec: | |
| rules: | |
| - host: * # <-- this setup will forward all Ingress traffic to a single container | |
| http: | |
| paths: | |
| - path: /foo |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Pod | |
| metadata : | |
| labels : | |
| test: liveness | |
| name: liveness—http | |
| spec: | |
| containers: | |
| — name: liveness | |
| image: some-random-image:v1.0 |
This file contains hidden or 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
| ports: | |
| - protocol: TCP | |
| port: 6379 |
This file contains hidden or 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
| apiVersion: networking.k8s.io/v1 | |
| kind: networkPolicy |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| labels: | |
| test: liveness | |
| name: liveness—http | |
| spec: | |
| containers: | |
| — name: liveness | |
| image: some-random-image:v1.0 |
This file contains hidden or 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
| resources: | |
| requests: | |
| memory: "64Mi" | |
| cpu: "250m" | |
| limits: | |
| memory: "128Mi" | |
| cpu: "500m" |
This file contains hidden or 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
| livenessprobe: | |
| httpGet: | |
| path: /healthz | |
| port: 8080 | |
| initialDetaySeconds: 3 | |
| periodSeconds: 3 |
This file contains hidden or 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
| apiVersion: vl | |
| kind: Service | |
| metadata : | |
| name: <my—nodeport—service> | |
| labels: | |
| <my-label-key>: <my-label-value> | |
| spec : | |
| selector: | |
| <my-selector-key>: <my-selector-value> | |
| type: NodePort // <-- This sets the "type" |
This file contains hidden or 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
| kind: Service | |
| apiVersion: v1 | |
| metadata : | |
| name: my—service | |
| spec: | |
| selector: | |
| app: MyApp | |
| ports : | |
| — protocol: TCP | |
| port: 80 |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: Octocat-service | |
| labels: | |
| purpose: Generate Octocats | |
| spec: | |
| containers: | |
| - name: octocat-generator-container | |
| image: docker.pkg.github.com/ubuntu:latest |