mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
WIP: Implement multi-port Services
This commit is contained in:
@@ -8,9 +8,13 @@
|
||||
}
|
||||
},
|
||||
"spec":{
|
||||
"port":3000,
|
||||
"containerPort":"http-server",
|
||||
"protocol":"TCP",
|
||||
"ports": [
|
||||
{
|
||||
"port":3000,
|
||||
"targetPort":"http-server",
|
||||
"protocol":"TCP"
|
||||
}
|
||||
],
|
||||
"selector":{
|
||||
"name":"guestbook"
|
||||
}
|
||||
|
@@ -9,9 +9,13 @@
|
||||
}
|
||||
},
|
||||
"spec":{
|
||||
"port":6379,
|
||||
"containerPort":"redis-server",
|
||||
"protocol":"TCP",
|
||||
"ports": [
|
||||
{
|
||||
"port":6379,
|
||||
"targetPort":"redis-server",
|
||||
"protocol":"TCP"
|
||||
}
|
||||
],
|
||||
"selector":{
|
||||
"name":"redis",
|
||||
"role":"master"
|
||||
|
@@ -9,9 +9,13 @@
|
||||
}
|
||||
},
|
||||
"spec":{
|
||||
"port":6379,
|
||||
"containerPort":"redis-server",
|
||||
"protocol":"TCP",
|
||||
"ports": [
|
||||
{
|
||||
"port":6379,
|
||||
"targetPort":"redis-server",
|
||||
"protocol":"TCP"
|
||||
}
|
||||
],
|
||||
"selector":{
|
||||
"name":"redis",
|
||||
"role":"slave"
|
||||
|
Reference in New Issue
Block a user