Created
April 5, 2017 06:33
-
-
Save tuananh/22e0fec5e43f6f56190a10df4822ed00 to your computer and use it in GitHub Desktop.
traefik.yaml
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: Ingress | |
metadata: | |
name: cheese | |
annotations: | |
kubernetes.io/ingress.class: traefik | |
spec: | |
rules: | |
- host: stilton.example.com | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: stilton | |
servicePort: http | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: stilton | |
spec: | |
ports: | |
- name: http | |
targetPort: 80 | |
port: 80 | |
selector: | |
app: cheese | |
task: stilton | |
--- | |
kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: stilton | |
labels: | |
app: cheese | |
cheese: stilton | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: cheese | |
task: stilton | |
template: | |
metadata: | |
labels: | |
app: cheese | |
task: stilton | |
version: v0.0.1 | |
spec: | |
containers: | |
- name: cheese | |
image: errm/cheese:stilton | |
resources: | |
requests: | |
cpu: 100m | |
memory: 50Mi | |
limits: | |
cpu: 100m | |
memory: 50Mi | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment