mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Add kind and apiVersion to guestbook example.
This commit is contained in:
parent
bf5ae4bb9d
commit
3723eb7629
@ -91,6 +91,8 @@ Where pod.json contains something like:
|
||||
```
|
||||
{
|
||||
"id": "php",
|
||||
"kind": "Pod",
|
||||
"apiVersion": "v1beta1",
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
"version": "v1beta1",
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"kind": "ReplicationControllerList",
|
||||
"apiVersion": "v1beta1",
|
||||
"items": [
|
||||
{
|
||||
"id": "testRun",
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"id": "nginxController",
|
||||
"apiVersion": "v1beta1",
|
||||
"kind": "ReplicationController",
|
||||
"desiredState": {
|
||||
"replicas": 2,
|
||||
"replicaSelector": {"name": "nginx"},
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"id": "example",
|
||||
"kind": "Service",
|
||||
"apiVersion": "v1beta1",
|
||||
"port": 8000,
|
||||
"labels": {
|
||||
"name": "nginx"
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"kind": "PodList",
|
||||
"apiVersion": "v1beta1",
|
||||
"items": [
|
||||
{
|
||||
"id": "my-pod-1",
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"kind": "Pod",
|
||||
"apiVersion": "v1beta1",
|
||||
"id": "php",
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"kind": "ServiceList",
|
||||
"apiVersion": "v1beta1",
|
||||
"items": [
|
||||
{
|
||||
"id": "example1",
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"kind": "Service",
|
||||
"apiVersion": "v1beta1",
|
||||
"id": "example",
|
||||
"port": 8000,
|
||||
"labels": {
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"id": "frontendController",
|
||||
"kind": "ReplicationController",
|
||||
"apiVersion": "v1beta1",
|
||||
"desiredState": {
|
||||
"replicas": 3,
|
||||
"replicaSelector": {"name": "frontend"},
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"id": "frontend",
|
||||
"kind": "Service",
|
||||
"apiVersion": "v1beta1",
|
||||
"port": 9998,
|
||||
"selector": {
|
||||
"name": "frontend"
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"id": "redismaster",
|
||||
"kind": "Service",
|
||||
"apiVersion": "v1beta1",
|
||||
"port": 10000,
|
||||
"selector": {
|
||||
"name": "redis-master"
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"id": "redis-master-2",
|
||||
"kind": "Pod",
|
||||
"apiVersion": "v1beta1",
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
"version": "v1beta1",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"id": "redisSlaveController",
|
||||
"kind": "ReplicationController",
|
||||
"apiVersion": "v1beta1",
|
||||
"desiredState": {
|
||||
"replicas": 2,
|
||||
"replicaSelector": {"name": "redisslave"},
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"id": "redisslave",
|
||||
"kind": "Service",
|
||||
"apiVersion": "v1beta1",
|
||||
"port": 10001,
|
||||
"labels": {
|
||||
"name": "redisslave"
|
||||
|
Loading…
Reference in New Issue
Block a user