kong kubernetes安装方法
2021-01-29 06:16
标签:The url nta prope watch ems x86 syn variable kong 使用 kubernetes集群外的Cassandra作为db1.说明
2.kong yaml
1.包含迁移脚本的yaml
apiVersion:
v1
kind:
Namespace
metadata:
name:
kong
---
apiVersion:
apiextensions.k8s.io/v1beta1
kind:
CustomResourceDefinition
metadata:
name:
kongclusterplugins.configuration.konghq.com
spec:
additionalPrinterColumns:
-
JSONPath
:
.plugin
description:
Name of the plugin
name:
Plugin-Type
type:
string
-
JSONPath
:
.metadata.creationTimestamp
description:
Age
name:
Age
type:
date
-
JSONPath
:
.disabled
description:
Indicates if the plugin is disabled
name:
Disabled
priority:
1
type:
boolean
-
JSONPath
:
.config
description:
Configuration of the plugin
name:
Config
priority:
1
type:
string
group:
configuration.konghq.com
names:
kind:
KongClusterPlugin
plural:
kongclusterplugins
shortNames:
-
kcp
scope:
Cluster
validation:
openAPIV3Schema:
properties:
config:
type:
object
configFrom:
properties:
secretKeyRef:
properties:
key:
type:
string
name:
type:
string
namespace:
type:
string
required:
-
name
-
namespace
-
key
type:
object
type:
object
disabled:
type:
boolean
plugin:
type:
string
protocols:
items:
enum:
-
http
-
https
-
grpc
-
grpcs
-
tcp
-
tls
type:
string
type:
array
run_on:
enum:
-
first
-
second
-
all
type:
string
required:
-
plugin
version:
v1
---
apiVersion:
apiextensions.k8s.io/v1beta1
kind:
CustomResourceDefinition
metadata:
name:
kongconsumers.configuration.konghq.com
spec:
additionalPrinterColumns:
-
JSONPath
:
.username
description:
Username of a Kong Consumer
name:
Username
type:
string
-
JSONPath
:
.metadata.creationTimestamp
description:
Age
name:
Age
type:
date
group:
configuration.konghq.com
names:
kind:
KongConsumer
plural:
kongconsumers
shortNames:
-
kc
scope:
Namespaced
validation:
openAPIV3Schema:
properties:
credentials:
items:
type:
string
type:
array
custom_id:
type:
string
username:
type:
string
version:
v1
---
apiVersion:
apiextensions.k8s.io/v1beta1
kind:
CustomResourceDefinition
metadata:
name:
kongcredentials.configuration.konghq.com
spec:
additionalPrinterColumns:
-
JSONPath
:
.type
description:
Type of credential
name:
Credential-type
type:
string
-
JSONPath
:
.metadata.creationTimestamp
description:
Age
name:
Age
type:
date
-
JSONPath
:
.consumerRef
description:
Owner of the credential
name:
Consumer-Ref
type:
string
group:
configuration.konghq.com
names:
kind:
KongCredential
plural:
kongcredentials
scope:
Namespaced
validation:
openAPIV3Schema:
properties:
consumerRef:
type:
string
type:
type:
string
required:
-
consumerRef
-
type
version:
v1
---
apiVersion:
apiextensions.k8s.io/v1beta1
kind:
CustomResourceDefinition
metadata:
name:
kongingresses.configuration.konghq.com
spec:
group:
configuration.konghq.com
names:
kind:
KongIngress
plural:
kongingresses
shortNames:
-
ki
scope:
Namespaced
validation:
openAPIV3Schema:
properties:
proxy:
properties:
connect_timeout:
minimum:
0
type:
integer
path:
pattern:
^/.*$
type:
string
protocol:
enum:
-
http
-
https
-
grpc
-
grpcs
-
tcp
-
tls
type:
string
read_timeout:
minimum:
0
type:
integer
retries:
minimum:
0
type:
integer
write_timeout:
minimum:
0
type:
integer
type:
object
route:
properties:
headers:
additionalProperties:
items:
type:
string
type:
array
type:
object
https_redirect_status_code:
type:
integer
methods:
items:
type:
string
type:
array
path_handling:
enum:
-
v0
-
v1
type:
string
preserve_host:
type:
boolean
protocols:
items:
enum:
-
http
-
https
-
grpc
-
grpcs
-
tcp
-
tls
type:
string
type:
array
regex_priority:
type:
integer
strip_path:
type:
boolean
upstream:
properties:
algorithm:
enum:
-
round-robin
-
consistent-hashing
-
least-connections
type:
string
hash_fallback:
type:
string
hash_fallback_header:
type:
string
hash_on:
type:
string
hash_on_cookie:
type:
string
hash_on_cookie_path:
type:
string
hash_on_header:
type:
string
healthchecks:
properties:
active:
properties:
concurrency:
minimum:
1
type:
integer
healthy:
properties:
http_statuses:
items:
type:
integer
type:
array
interval:
minimum:
0
type:
integer
successes:
minimum:
0
type:
integer
type:
object
http_path:
pattern:
^/.*$
type:
string
timeout:
minimum:
0
type:
integer
unhealthy:
properties:
http_failures:
minimum:
0
type:
integer
http_statuses:
items:
type:
integer
type:
array
interval:
minimum:
0
type:
integer
tcp_failures:
minimum:
0
type:
integer
timeout:
minimum:
0
type:
integer
type:
object
type:
object
passive:
properties:
healthy:
properties:
http_statuses:
items:
type:
integer
type:
array
interval:
minimum:
0
type:
integer
successes:
minimum:
0
type:
integer
type:
object
unhealthy:
properties:
http_failures:
minimum:
0
type:
integer
http_statuses:
items:
type:
integer
type:
array
interval:
minimum:
0
type:
integer
tcp_failures:
minimum:
0
type:
integer
timeout:
minimum:
0
type:
integer
type:
object
type:
object
threshold:
type:
integer
type:
object
host_header:
type:
string
slots:
minimum:
10
type:
integer
type:
object
version:
v1
---
apiVersion:
apiextensions.k8s.io/v1beta1
kind:
CustomResourceDefinition
metadata:
name:
kongplugins.configuration.konghq.com
spec:
additionalPrinterColumns:
-
JSONPath
:
.plugin
description:
Name of the plugin
name:
Plugin-Type
type:
string
-
JSONPath
:
.metadata.creationTimestamp
description:
Age
name:
Age
type:
date
-
JSONPath
:
.disabled
description:
Indicates if the plugin is disabled
name:
Disabled
priority:
1
type:
boolean
-
JSONPath
:
.config
description:
Configuration of the plugin
name:
Config
priority:
1
type:
string
group:
configuration.konghq.com
names:
kind:
KongPlugin
plural:
kongplugins
shortNames:
-
kp
scope:
Namespaced
validation:
openAPIV3Schema:
properties:
config:
type:
object
configFrom:
properties:
secretKeyRef:
properties:
key:
type:
string
name:
type:
string
required:
-
name
-
key
type:
object
type:
object
disabled:
type:
boolean
plugin:
type:
string
protocols:
items:
enum:
-
http
-
https
-
grpc
-
grpcs
-
tcp
-
tls
type:
string
type:
array
run_on:
enum:
-
first
-
second
-
all
type:
string
required:
-
plugin
version:
v1
---
apiVersion:
apiextensions.k8s.io/v1beta1
kind:
CustomResourceDefinition
metadata:
name:
tcpingresses.configuration.konghq.com
spec:
additionalPrinterColumns:
-
JSONPath
:
.status.loadBalancer.ingress
[
*
]
.ip
description:
Address of the load balancer
name:
Address
type:
string
-
JSONPath
:
.metadata.creationTimestamp
description:
Age
name:
Age
type:
date
group:
configuration.konghq.com
names:
kind:
TCPIngress
plural:
tcpingresses
scope:
Namespaced
subresources:
status:
{
}
validation:
openAPIV3Schema:
properties:
apiVersion:
type:
string
kind:
type:
string
metadata:
type:
object
spec:
properties:
rules:
items:
properties:
backend:
properties:
serviceName:
type:
string
servicePort:
format:
int32
type:
integer
type:
object
host:
type:
string
port:
format:
int32
type:
integer
type:
object
type:
array
tls:
items:
properties:
hosts:
items:
type:
string
type:
array
secretName:
type:
string
type:
object
type:
array
type:
object
status:
type:
object
version:
v1beta1
status:
acceptedNames:
kind:
""
plural:
""
conditions:
[
]
storedVersions:
[
]
---
apiVersion:
v1
kind:
ServiceAccount
metadata:
name:
kong-serviceaccount
namespace:
kong
---
apiVersion:
rbac.authorization.k8s.io/v1beta1
kind:
ClusterRole
metadata:
name:
kong-ingress-clusterrole
rules:
- apiGroups
:
-
""
resources:
-
endpoints
-
nodes
-
pods
-
secrets
verbs:
-
list
-
watch
- apiGroups
:
-
""
resources:
-
nodes
verbs:
-
get
- apiGroups
:
-
""
resources:
&l
上一篇:curl获取HTTP返回状态码
下一篇:kubernetes安装包下载
文章标题:kong kubernetes安装方法
文章链接:http://soscw.com/index.php/essay/48567.html