Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k8syml
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
k8syml
Commits
5fc638e7
Commit
5fc638e7
authored
Apr 14, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
337b8b55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
446 additions
and
446 deletions
+446
-446
yamls/kong/kong-ingress-dbless.yaml
+446
-446
No files found.
yamls/kong/kong-ingress-dbless.yaml
View file @
5fc638e7
...
...
@@ -2,456 +2,456 @@
#kind: Namespace
#metadata:
# name: kong
---
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
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
preserve_host
:
type
:
boolean
protocols
:
items
:
enum
:
-
http
-
https
-
grpc
-
grpcs
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
type
:
object
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
disabled
:
type
:
boolean
plugin
:
type
:
string
protocols
:
items
:
enum
:
-
http
-
https
-
tcp
-
tls
type
:
string
type
:
array
run_on
:
enum
:
-
first
-
second
-
all
type
:
string
required
:
-
plugin
version
:
v1
---
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
:
-
services
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
networking.k8s.io
-
extensions
resources
:
-
ingresses
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
"
"
resources
:
-
events
verbs
:
-
create
-
patch
-
apiGroups
:
-
networking.k8s.io
-
extensions
resources
:
-
ingresses/status
verbs
:
-
update
-
apiGroups
:
-
configuration.konghq.com
resources
:
-
kongplugins
-
kongcredentials
-
kongconsumers
-
kongingresses
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
"
"
resourceNames
:
-
ingress-controller-leader-kong
resources
:
-
configmaps
verbs
:
-
get
-
update
-
apiGroups
:
-
"
"
resources
:
-
configmaps
verbs
:
-
create
---
apiVersion
:
rbac.authorization.k8s.io/v1beta1
kind
:
ClusterRoleBinding
metadata
:
name
:
kong-ingress-clusterrole-nisa-binding
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
kong-ingress-clusterrole
subjects
:
-
kind
:
ServiceAccount
name
:
kong-serviceaccount
namespace
:
kong
---
apiVersion
:
v1
data
:
servers.conf
:
|
# Prometheus metrics server
server {
server_name kong_prometheus_exporter;
listen 0.0.0.0:9542; # can be any other port as well
access_log off;
#
---
#
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
#
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
#
preserve_host:
#
type: boolean
#
protocols:
#
items:
#
enum:
#
- http
#
- https
#
- grpc
#
- grpcs
#
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
#
type: object
#
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
#
disabled:
#
type: boolean
#
plugin:
#
type: string
#
protocols:
#
items:
#
enum:
#
- http
#
- https
#
- tcp
#
- tls
#
type: string
#
type: array
#
run_on:
#
enum:
#
- first
#
- second
#
- all
#
type: string
#
required:
#
- plugin
#
version: v1
#
---
#
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:
#
- services
#
verbs:
#
- get
#
- list
#
- watch
#
- apiGroups:
#
- networking.k8s.io
#
- extensions
#
resources:
#
- ingresses
#
verbs:
#
- get
#
- list
#
- watch
#
- apiGroups:
#
- ""
#
resources:
#
- events
#
verbs:
#
- create
#
- patch
#
- apiGroups:
#
- networking.k8s.io
#
- extensions
#
resources:
#
- ingresses/status
#
verbs:
#
- update
#
- apiGroups:
#
- configuration.konghq.com
#
resources:
#
- kongplugins
#
- kongcredentials
#
- kongconsumers
#
- kongingresses
#
verbs:
#
- get
#
- list
#
- watch
#
- apiGroups:
#
- ""
#
resourceNames:
#
- ingress-controller-leader-kong
#
resources:
#
- configmaps
#
verbs:
#
- get
#
- update
#
- apiGroups:
#
- ""
#
resources:
#
- configmaps
#
verbs:
#
- create
#
---
#
apiVersion: rbac.authorization.k8s.io/v1beta1
#
kind: ClusterRoleBinding
#
metadata:
#
name: kong-ingress-clusterrole-nisa-binding
#
roleRef:
#
apiGroup: rbac.authorization.k8s.io
#
kind: ClusterRole
#
name: kong-ingress-clusterrole
#
subjects:
#
- kind: ServiceAccount
#
name: kong-serviceaccount
#
namespace: kong
#
---
#
apiVersion: v1
#
data:
#
servers.conf: |
#
# Prometheus metrics server
#
server {
#
server_name kong_prometheus_exporter;
#
listen 0.0.0.0:9542; # can be any other port as well
#
access_log off;
location /metrics {
default_type text/plain;
content_by_lua_block {
local prometheus = require "kong.plugins.prometheus.exporter"
prometheus:collect()
}
}
#
location /metrics {
#
default_type text/plain;
#
content_by_lua_block {
#
local prometheus = require "kong.plugins.prometheus.exporter"
#
prometheus:collect()
#
}
#
}
location /nginx_status {
internal;
stub_status;
}
}
# Health check server
server {
server_name kong_health_check;
listen 0.0.0.0:9001; # can be any other port as well
#
location /nginx_status {
#
internal;
#
stub_status;
#
}
#
}
#
# Health check server
#
server {
#
server_name kong_health_check;
#
listen 0.0.0.0:9001; # can be any other port as well
access_log off;
location /health {
return 200;
}
}
kong.yml
:
|
_format_version: "1.1"
services:
- name: chaolai.igirl-service.80
host: czhd.gongsibao.com
plugins:
- name: prometheus
service: chaolai.igirl-service.80
kind
:
ConfigMap
metadata
:
name
:
kong-server-blocks
namespace
:
kong
#
access_log off;
#
location /health {
#
return 200;
#
}
#
}
#
kong.yml: |
#
_format_version: "1.1"
#
services:
#
- name: chaolai.igirl-service.80
#
host: czhd.gongsibao.com
#
plugins:
#
- name: prometheus
#
service: chaolai.igirl-service.80
#
kind: ConfigMap
#
metadata:
#
name: kong-server-blocks
#
namespace: kong
---
#
---
apiVersion
:
v1
kind
:
Service
metadata
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment