Add ingress for kubernetes dashboard.
This commit is contained in:
38
yaml/hello.yaml
Normal file
38
yaml/hello.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello
|
||||
labels:
|
||||
run: hello
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 8000
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: hello
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hello
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hello
|
||||
spec:
|
||||
containers:
|
||||
- image: crccheck/hello-world
|
||||
name: hello
|
||||
# command:
|
||||
# - sleep
|
||||
# - "3600"
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user