make use of the local fake teams api
This commit is contained in:
parent
fb454b809e
commit
9ee9e286ec
|
|
@ -111,6 +111,13 @@ Etcd is required to deploy the operator.
|
||||||
|
|
||||||
$ kubectl --context minikube create -f https://raw.githubusercontent.com/coreos/etcd/master/hack/kubernetes-deploy/etcd.yml
|
$ kubectl --context minikube create -f https://raw.githubusercontent.com/coreos/etcd/master/hack/kubernetes-deploy/etcd.yml
|
||||||
|
|
||||||
|
### Deploy fake Teams API
|
||||||
|
|
||||||
|
Teams API is used as a source of human users.
|
||||||
|
|
||||||
|
$ kubectl --context minikube create -f manifests/fake-teams-api.yaml
|
||||||
|
|
||||||
|
|
||||||
### Check if ThirdPartyResource has been registered
|
### Check if ThirdPartyResource has been registered
|
||||||
|
|
||||||
$ kubectl --context minikube get thirdpartyresources
|
$ kubectl --context minikube get thirdpartyresources
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,5 @@ data:
|
||||||
resync_period: 5m
|
resync_period: 5m
|
||||||
resync_period_pod: 5m
|
resync_period_pod: 5m
|
||||||
super_username: postgres
|
super_username: postgres
|
||||||
teams_api_url: https://teams.example.com/api/
|
teams_api_url: http://fake-teams-api.default.svc.cluster.local
|
||||||
workers: "4"
|
workers: "4"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: fake-teams-api
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
name: fake-teams-api
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: fake-teams-api
|
||||||
|
image: ikitiki/fake-teams-api:latest
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: fake-teams-api
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
name: fake-teams-api
|
||||||
|
ports:
|
||||||
|
- name: server
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
type: NodePort
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: postgresql-operator
|
||||||
|
namespace: default
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
cluster-registry-rw-token-secret: c29tZSBkYXRhCg==
|
||||||
|
cluster-registry-rw-token-type: QmVhcmVy
|
||||||
|
cluster-rw-token-secret: c29tZSBkYXRhCg==
|
||||||
|
cluster-rw-token-type: QmVhcmVy
|
||||||
|
read-only-token-secret: c29tZSBkYXRhCg==
|
||||||
|
read-only-token-type: QmVhcmVy
|
||||||
Loading…
Reference in New Issue