Created
November 10, 2019 16:55
-
-
Save pdavies011010/6798d5003390c80ec6b6406c3687bfc9 to your computer and use it in GitHub Desktop.
HelloWorld sample resources
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: helloworld | |
labels: | |
app: helloworld | |
spec: | |
ports: | |
- port: 5000 | |
name: http | |
selector: | |
app: helloworld | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: helloworld-v1 | |
labels: | |
version: v1 | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: helloworld | |
version: v1 | |
template: | |
metadata: | |
labels: | |
app: helloworld | |
version: v1 | |
spec: | |
containers: | |
- name: helloworld | |
image: docker.io/istio/examples-helloworld-v1 | |
resources: | |
requests: | |
cpu: "100m" | |
imagePullPolicy: IfNotPresent #Always | |
ports: | |
- containerPort: 5000 | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: helloworld-v2 | |
labels: | |
version: v2 | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: helloworld | |
version: v2 | |
template: | |
metadata: | |
labels: | |
app: helloworld | |
version: v2 | |
spec: | |
containers: | |
- name: helloworld | |
image: docker.io/istio/examples-helloworld-v2 | |
resources: | |
requests: | |
cpu: "100m" | |
imagePullPolicy: IfNotPresent #Always | |
ports: | |
- containerPort: 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment