Last active
January 26, 2021 22:56
-
-
Save chris-schra/074b06f686e34bc33c9e54272b892810 to your computer and use it in GitHub Desktop.
Kuard Demo for Kuma
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: kuard-ingress | |
namespace: kuard | |
spec: | |
rules: | |
- http: | |
paths: | |
- path: / | |
backend: | |
serviceName: kuard | |
servicePort: 8080 |
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: Namespace | |
metadata: | |
name: kuard | |
namespace: kuard | |
annotations: | |
kuma.io/sidecar-injection: enabled | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: kuard | |
name: kuard | |
namespace: kuard | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: kuard | |
template: | |
metadata: | |
labels: | |
app: kuard | |
spec: | |
containers: | |
- image: gcr.io/kuar-demo/kuard-amd64:1 | |
name: kuard | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: kuard | |
name: kuard | |
namespace: kuard | |
annotations: | |
8080.service.kuma.io/protocol: "http" | |
ingress.kubernetes.io/service-upstream: "true" | |
spec: | |
ports: | |
- port: 8080 | |
name: http | |
targetPort: 8080 | |
selector: | |
app: kuard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment