- Added ADC (API7 Declarative CLI) post-install job for automatic gateway setup - Created ConfigMap with complete API7 routing and service configuration - Integrated cert-manager for automatic TLS certificate management - Added support for Kubernetes service discovery - Implemented auto-publish feature for routes after deployment - Added comprehensive API7 plugin configurations (rate limiting, CORS, auth) - Created RBAC resources for ADC job to access cluster resources - Secured admin credentials using Kubernetes secrets - Updated values.yaml with extensive API7 configuration options - Enhanced documentation with API7 setup and troubleshooting guides
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
{{- if and .Values.api7.enabled .Values.serviceAccount.create }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: {{ include "api7ee.fullname" . }}-adc
|
|
labels:
|
|
{{- include "api7ee.labels" . | nindent 4 }}
|
|
rules:
|
|
# Allow reading secrets (for certificates)
|
|
- apiGroups: [""]
|
|
resources: ["secrets"]
|
|
verbs: ["get", "list"]
|
|
# Allow reading services and endpoints for service discovery
|
|
- apiGroups: [""]
|
|
resources: ["services", "endpoints"]
|
|
verbs: ["get", "list", "watch"]
|
|
# Allow reading pods for health checks
|
|
- apiGroups: [""]
|
|
resources: ["pods"]
|
|
verbs: ["get", "list"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ include "api7ee.fullname" . }}-adc
|
|
labels:
|
|
{{- include "api7ee.labels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: {{ include "api7ee.fullname" . }}-adc
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "api7ee.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }} |