command
module
Version:
v0.0.0-...-a671b78
Opens a new window with list of versions in this module.
Published: Jun 29, 2021
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
enforce-oke-internal-lb
自动强制为 Oracle OKE 集群 Loadbalancer 类型的 Service 切换为内网类型的负载均衡
使用方式
# create serviceaccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: enforce-oke-internal-lb
namespace: autoops
---
# create clusterrole
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: enforce-oke-internal-lb
rules:
- apiGroups: [ "" ]
resources: [ "namespaces" ]
verbs: [ "get" ]
---
# create clusterrolebinding
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: enforce-oke-internal-lb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: enforce-oke-internal-lb
subjects:
- kind: ServiceAccount
name: enforce-oke-internal-lb
namespace: autoops
---
# create job
apiVersion: batch/v1
kind: Job
metadata:
name: install-enforce-oke-internal-lb
namespace: autoops
spec:
template:
spec:
serviceAccount: admission-bootstrapper
containers:
- name: admission-bootstrapper
image: autoops/admission-bootstrapper
env:
- name: ADMISSION_NAME
value: enforce-oke-internal-lb
- name: ADMISSION_IMAGE
value: autoops/enforce-oke-internal-lb
- name: ADMISSION_ENVS
value: ""
- name: ADMISSION_SERVICE_ACCOUNT
value: "enforce-oke-internal-lb"
- name: ADMISSION_MUTATING
value: "true"
- name: ADMISSION_IGNORE_FAILURE
value: "false"
- name: ADMISSION_SIDE_EFFECT
value: "None"
- name: ADMISSION_RULES
value: '[{"operations":["CREATE"],"apiGroups":[""], "apiVersions":["*"], "resources":["services"]}]'
restartPolicy: OnFailure
Credits
Guo Y.K., MIT License
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.