Last active
November 30, 2023 17:56
-
-
Save kincl/1ae6cd893e00081531a4c7f4ed88fdcb to your computer and use it in GitHub Desktop.
simple-deployment
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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: test | |
spec: | |
rules: | |
- host: ingress.example.org | |
http: | |
paths: | |
- path: / | |
pathType: Prefix | |
backend: | |
service: | |
name: test | |
port: | |
number: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: test | |
annotations: | |
external-dns.alpha.kubernetes.io/hostname: ingress.example.org | |
spec: | |
type: ClusterIP | |
ports: | |
- port: 8080 | |
targetPort: 8080 | |
selector: | |
app: test | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: test | |
spec: | |
selector: | |
matchLabels: | |
app: test | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: test | |
spec: | |
containers: | |
- name: http | |
image: quay.io/openshifttest/hello-openshift:1.2.0 | |
ports: | |
- containerPort: 8080 | |
protocol: TCP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment