-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an example making use of the new configuration option.
Signed-off-by: Hunter Madison <[email protected]>
- Loading branch information
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
examples/kubernetes/kafka-oauth-single-authz-service-accounts.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: oidc-reader | ||
annotations: | ||
kubernetes.io/description: | | ||
A cluster role which allows access to the OpenID Connect endpoints on | ||
the API Server. | ||
rules: | ||
- nonResourceURLs: ["/.well-known/openid-configuration", "/openid/v1/jwks"] | ||
verbs: ["get", "post"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: oidc-reader-binding | ||
annotations: | ||
kubernetes.io/description: | | ||
A role binding which allows for anonymous access to those endpoints | ||
from consuming applications. | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: oidc-reader | ||
subjects: | ||
- apiGroup: rbac.authorization.k8s.io | ||
kind: User | ||
name: "system:anonymous" | ||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: Kafka | ||
metadata: | ||
name: my-cluster | ||
spec: | ||
kafka: | ||
version: 3.5.0 | ||
replicas: 1 | ||
listeners: | ||
- name: plain | ||
port: 9092 | ||
type: internal | ||
tls: false | ||
authentication: | ||
type: oauth | ||
enablePlain: true | ||
checkAccessTokenType: false | ||
validIssuerUri: https://kubernetes.default.svc.cluster.local | ||
jwksEndpointUri: https://kubernetes.default.svc.cluster.local/openid/v1/jwks | ||
userNameClaim: sub | ||
tlsTrustedCertificates: | ||
- secretName: kube-root-ca | ||
certificate: ca.crt | ||
authorization: | ||
type: simple | ||
superUsers: | ||
- system:serviceaccount:default:default | ||
config: | ||
offsets.topic.replication.factor: 1 | ||
transaction.state.log.replication.factor: 1 | ||
transaction.state.log.min.isr: 1 | ||
jvmOptions: | ||
javaSystemProperties: | ||
- name: "oauth.include.accept.header" | ||
value: "false" | ||
logging: | ||
type: inline | ||
loggers: | ||
log4j.logger.io.strimzi: DEBUG | ||
storage: | ||
type: ephemeral | ||
zookeeper: | ||
replicas: 1 | ||
storage: | ||
type: ephemeral | ||
entityOperator: | ||
topicOperator: {} | ||
userOperator: {} |