moved pod to deployment
This commit is contained in:
parent
fe1523102d
commit
cc75d44266
7 changed files with 71 additions and 49 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
CC=docker
|
CC=docker
|
||||||
APP=certman-istio-operator
|
APP=certman-istio-operator
|
||||||
TAG=127.0.0.1:5000/cert/$(APP):$(VERSION)
|
TAG=127.0.0.1:5000/istio/$(APP):$(VERSION)
|
||||||
|
|
||||||
all: build push
|
all: build push
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,17 +16,17 @@ Grant permissions for the new operator:
|
||||||
kubectl apply -f rbac.yaml
|
kubectl apply -f rbac.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Create the operator pod:
|
Create the operator deployment:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f pod.yaml
|
kubectl apply -f deployment.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Cleanup
|
## Cleanup
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl -n cert-manager exec certman-istio-operator /cleanup.sh
|
kubectl -n cert-manager exec certman-istio-operator /cleanup.sh
|
||||||
kubectl delete -f pod.yaml
|
kubectl delete -f deployment.yaml
|
||||||
kubectl delete -f rbac.yaml
|
kubectl delete -f rbac.yaml
|
||||||
kubectl delete -f crd.yaml
|
kubectl delete -f crd.yaml
|
||||||
```
|
```
|
||||||
|
|
|
||||||
32
testapp/certman-istio-operator/deployment.yaml
Normal file
32
testapp/certman-istio-operator/deployment.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: certman-istio-operator
|
||||||
|
namespace: cert-manager
|
||||||
|
labels:
|
||||||
|
app: certman-istio-operator
|
||||||
|
version: v1
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: certman-istio-operator
|
||||||
|
version: v1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: certman-istio-operator
|
||||||
|
version: v1
|
||||||
|
spec:
|
||||||
|
serviceAccountName: certman-istio-operator
|
||||||
|
containers:
|
||||||
|
- name: certman-istio-operator
|
||||||
|
image: 127.0.0.1:5000/istio/certman-istio-operator:v1
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
imagePullPolicy: Always
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: certman-istio-operator
|
|
||||||
namespace: cert-manager
|
|
||||||
labels:
|
|
||||||
app: certman-istio-operator
|
|
||||||
version: v1
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: certman-istio-operator
|
|
||||||
image: 127.0.0.1:5000/cert/certman-istio-operator:v1
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
imagePullPolicy: Always
|
|
||||||
serviceAccountName: certman-istio-operator
|
|
||||||
|
|
@ -12,16 +12,16 @@ Grant permissions for the new operator:
|
||||||
kubectl apply -f rbac.yaml
|
kubectl apply -f rbac.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Create the operator pod:
|
Create the operator deployment:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f pod.yaml
|
kubectl apply -f deployment.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Cleanup
|
## Cleanup
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl delete -f pod.yaml
|
kubectl delete -f deployment.yaml
|
||||||
kubectl delete -f rbac.yaml
|
kubectl delete -f rbac.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
32
testapp/linkerd-ingress-operator/deployment.yaml
Normal file
32
testapp/linkerd-ingress-operator/deployment.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: linkerd-ingress-operator
|
||||||
|
namespace: linkerd
|
||||||
|
labels:
|
||||||
|
app: linkerd-ingress-operator
|
||||||
|
version: v1
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: linkerd-ingress-operator
|
||||||
|
version: v1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: linkerd-ingress-operator
|
||||||
|
version: v1
|
||||||
|
spec:
|
||||||
|
serviceAccountName: linkerd-ingress-operator
|
||||||
|
containers:
|
||||||
|
- name: linkerd-ingress-operator
|
||||||
|
image: 127.0.0.1:5000/linkerd/linkerd-ingress-operator:v1
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
imagePullPolicy: Always
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: linkerd-ingress-operator
|
|
||||||
namespace: linkerd
|
|
||||||
labels:
|
|
||||||
app: linkerd-ingress-operator
|
|
||||||
version: v1
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: linkerd-ingress-operator
|
|
||||||
image: 127.0.0.1:5000/linkerd/linkerd-ingress-operator:v1
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
imagePullPolicy: Always
|
|
||||||
serviceAccountName: linkerd-ingress-operator
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue