renamed controller to operator

This commit is contained in:
ston1th 2019-08-10 21:59:44 +02:00
commit 3a61942646
11 changed files with 45 additions and 45 deletions

View file

@ -1,32 +0,0 @@
# Istio Cert Manager
The Istio Cert Manager is an addon controller to support Cert-Manager's `ACME HTTP01` Issuer with Istio `Gateway` and `VirtualService` intgration.
## Install
Create the Custom Resource Definition:
```
kubectl apply -f crd.yaml
```
Grant permissions for the new controller:
```
kubectl apply -f rbac.yaml
```
Create the controller pod:
```
kubectl apply -f pod.yaml
```
## Cleanup
```
kubectl -n cert-manager exec certman-istio-controller /cleanup.sh
kubectl delete -f pod.yaml
kubectl delete -f rbac.yaml
kubectl delete -f crd.yaml
```

View file

@ -1,5 +1,5 @@
CC=docker
APP=certman-istio-controller
APP=certman-istio-operator
TAG=127.0.0.1:5000/cert/$(APP):$(VERSION)
all: build push

View file

@ -0,0 +1,32 @@
# Istio Cert Manager Operator
The Istio Cert Manager is an addon operator to support Cert-Manager's `ACME HTTP01` Issuer with Istio `Gateway` and `VirtualService` integration.
## Install
Create the Custom Resource Definition:
```
kubectl apply -f crd.yaml
```
Grant permissions for the new operator:
```
kubectl apply -f rbac.yaml
```
Create the operator pod:
```
kubectl apply -f pod.yaml
```
## Cleanup
```
kubectl -n cert-manager exec certman-istio-operator /cleanup.sh
kubectl delete -f pod.yaml
kubectl delete -f rbac.yaml
kubectl delete -f crd.yaml
```

View file

@ -18,7 +18,7 @@ EOF
mkmap() {
kubectl apply -f - <<EOF
apiVersion: cic.giftfish.de/v1alpha1
apiVersion: cio.giftfish.de/v1alpha1
kind: RefMap
metadata:
name: "$1"

View file

@ -1,15 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: certman-istio-controller
name: certman-istio-operator
namespace: cert-manager
labels:
app: certman-istio-controller
app: certman-istio-operator
version: v1
spec:
containers:
- name: certman-istio-controller
image: 127.0.0.1:5000/cert/certman-istio-controller:v1
- name: certman-istio-operator
image: 127.0.0.1:5000/cert/certman-istio-operator:v1
resources:
limits:
cpu: 100m
@ -18,4 +18,4 @@ spec:
cpu: 100m
memory: 128Mi
imagePullPolicy: Always
serviceAccountName: certman-istio-controller
serviceAccountName: certman-istio-operator

View file

@ -1,13 +1,13 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: certman-istio-controller
name: certman-istio-operator
namespace: cert-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: certman-istio-controller
name: certman-istio-operator
rules:
- apiGroups:
- extensions
@ -26,7 +26,7 @@ rules:
- destinationrules
verbs: ["get", "create", "delete"]
- apiGroups:
- cic.giftfish.de
- cio.giftfish.de
resources:
- refmaps
verbs: ["get", "list", "create", "delete"]
@ -34,12 +34,12 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: certman-istio-controller
name: certman-istio-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: certman-istio-controller
name: certman-istio-operator
subjects:
- kind: ServiceAccount
name: certman-istio-controller
name: certman-istio-operator
namespace: cert-manager