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
|
||||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -16,17 +16,17 @@ Grant permissions for the new operator:
|
|||
kubectl apply -f rbac.yaml
|
||||
```
|
||||
|
||||
Create the operator pod:
|
||||
Create the operator deployment:
|
||||
|
||||
```
|
||||
kubectl apply -f pod.yaml
|
||||
kubectl apply -f deployment.yaml
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
```
|
||||
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 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue