Created
February 5, 2018 02:04
-
-
Save stevenc81/c906a877f2c327ae405195af1e250e8a to your computer and use it in GitHub Desktop.
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: myhelloworld | |
name: myhelloworld | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: myhelloworld | |
spec: | |
containers: | |
- image: stevenc81/jaeger-tracing-example:0.1 | |
imagePullPolicy: Always | |
name: myhelloworld | |
ports: | |
- containerPort: 8080 | |
restartPolicy: Always | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: myhelloworld | |
labels: | |
app: myhelloworld | |
spec: | |
type: NodePort | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
name: http | |
selector: | |
app: myhelloworld | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: myhelloworld | |
annotations: | |
kubernetes.io/ingress.class: "istio" | |
spec: | |
rules: | |
- http: | |
paths: | |
- path: / | |
backend: | |
serviceName: myhelloworld | |
servicePort: 80 | |
- path: /gettime | |
backend: | |
serviceName: myhelloworld | |
servicePort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment