mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Stop using named ports in examples and scripts.
This commit is contained in:
parent
0fec31a11e
commit
e0e6741027
@ -1,8 +1,8 @@
|
|||||||
apiVersion: v1beta1
|
apiVersion: v1beta1
|
||||||
kind: Service
|
kind: Service
|
||||||
id: elasticsearch-logging
|
id: elasticsearch-logging
|
||||||
containerPort: es-port
|
|
||||||
port: 9200
|
port: 9200
|
||||||
|
containerPort: 9200
|
||||||
labels:
|
labels:
|
||||||
name: elasticsearch-logging
|
name: elasticsearch-logging
|
||||||
kubernetes.io/cluster-service: "true"
|
kubernetes.io/cluster-service: "true"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1beta1
|
apiVersion: v1beta1
|
||||||
kind: Service
|
kind: Service
|
||||||
id: kibana-logging
|
id: kibana-logging
|
||||||
containerPort: kibana-port
|
containerPort: 80
|
||||||
port: 5601
|
port: 5601
|
||||||
labels:
|
labels:
|
||||||
name: kibana-logging
|
name: kibana-logging
|
||||||
|
@ -111,7 +111,7 @@ Running: ../../../../cluster/gce/../../_output/dockerized/bin/linux/amd64/kubect
|
|||||||
"publicIPs": [
|
"publicIPs": [
|
||||||
"104.154.81.135"
|
"104.154.81.135"
|
||||||
],
|
],
|
||||||
"containerPort": "es-port",
|
"containerPort": 9200,
|
||||||
"portalIP": "10.0.58.62",
|
"portalIP": "10.0.58.62",
|
||||||
"sessionAffinity": "None"
|
"sessionAffinity": "None"
|
||||||
}
|
}
|
||||||
@ -139,7 +139,7 @@ Running: ../../../../cluster/gce/../../_output/dockerized/bin/linux/amd64/kubect
|
|||||||
"publicIPs": [
|
"publicIPs": [
|
||||||
"104.154.91.224"
|
"104.154.91.224"
|
||||||
],
|
],
|
||||||
"containerPort": "kibana-port",
|
"containerPort": 80,
|
||||||
"portalIP": "10.0.124.153",
|
"portalIP": "10.0.124.153",
|
||||||
"sessionAffinity": "None"
|
"sessionAffinity": "None"
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ id: blog-service
|
|||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1beta1
|
apiVersion: v1beta1
|
||||||
port: 80
|
port: 80
|
||||||
containerPort: http-server
|
containerPort: 80
|
||||||
selector:
|
selector:
|
||||||
name: blog
|
name: blog
|
||||||
createExternalLoadBalancer: true
|
createExternalLoadBalancer: true
|
||||||
|
@ -91,7 +91,7 @@ Where pod.json contains something like:
|
|||||||
"initialDelaySeconds": 30,
|
"initialDelaySeconds": 30,
|
||||||
"httpGet": {
|
"httpGet": {
|
||||||
"path": "/index.html",
|
"path": "/index.html",
|
||||||
"port": "8080"
|
"port": 8080
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
@ -104,7 +104,7 @@ Where pod.json contains something like:
|
|||||||
"initialDelaySeconds": 30,
|
"initialDelaySeconds": 30,
|
||||||
"httpGet": {
|
"httpGet": {
|
||||||
"path": "/index.html",
|
"path": "/index.html",
|
||||||
"port": "8081"
|
"port": 8081
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
@ -173,7 +173,7 @@ cat <<EOF >"${ORIGIN}/api-service.json"
|
|||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"id": "origin-api",
|
"id": "origin-api",
|
||||||
"port": 8443,
|
"port": 8443,
|
||||||
"containerPort": "https-api",
|
"containerPort": 8443,
|
||||||
"selector": { "name": "origin" },
|
"selector": { "name": "origin" },
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@ -186,7 +186,7 @@ cat <<EOF >"${ORIGIN}/ui-service.json"
|
|||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"id": "origin-ui",
|
"id": "origin-ui",
|
||||||
"port": 8444,
|
"port": 8444,
|
||||||
"containerPort": "https-ui",
|
"containerPort": 8444,
|
||||||
"selector": { "name": "origin" },
|
"selector": { "name": "origin" },
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
@ -2,8 +2,8 @@ apiVersion: v1beta1
|
|||||||
namespace: rethinkdb
|
namespace: rethinkdb
|
||||||
kind: Service
|
kind: Service
|
||||||
id: rethinkdb-admin
|
id: rethinkdb-admin
|
||||||
containerPort: admin-port
|
|
||||||
port: 8080
|
port: 8080
|
||||||
|
containerPort: 8080
|
||||||
labels:
|
labels:
|
||||||
db: influxdb
|
db: influxdb
|
||||||
selector:
|
selector:
|
||||||
|
@ -2,8 +2,8 @@ apiVersion: v1beta1
|
|||||||
namespace: rethinkdb
|
namespace: rethinkdb
|
||||||
kind: Service
|
kind: Service
|
||||||
id: rethinkdb-driver
|
id: rethinkdb-driver
|
||||||
containerPort: driver-port
|
|
||||||
port: 28015
|
port: 28015
|
||||||
|
containerPort: 28015
|
||||||
labels:
|
labels:
|
||||||
db: influxdb
|
db: influxdb
|
||||||
selector:
|
selector:
|
||||||
|
Loading…
Reference in New Issue
Block a user