Created
May 3, 2020 15:32
-
-
Save superboum/009108c9e375bd9ea0aa575c09914cfe to your computer and use it in GitHub Desktop.
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: cweb-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: cweb | |
template: | |
metadata: | |
labels: | |
app: cweb | |
spec: | |
containers: | |
- name: cweb-instance | |
image: superboum/amd64_cweb:latest | |
ports: | |
- containerPort: 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: Service | |
metadata: | |
name: cweb-service | |
spec: | |
selector: | |
app: cweb | |
ports: | |
- protocol: TCP | |
port: 8080 | |
targetPort: 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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: cweb-ingress | |
spec: | |
rules: | |
- host: front.k8s.dufour.io | |
http: | |
paths: | |
- path: | |
backend: | |
serviceName: cweb-service | |
servicePort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment