This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: numbers-api
spec:
type: ExternalName
externalName: raw.githubusercontent.com

View File

@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: numbers-api
spec:
type: ClusterIP
ports:
- port: 80
---
kind: Endpoints
apiVersion: v1
metadata:
name: numbers-api
subsets:
- addresses:
- ip: 192.168.123.234
ports:
- port: 80

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: numbers-web-node
spec:
ports:
- port: 8080
targetPort: 80
nodePort: 30080
selector:
app: numbers-web
type: NodePort