标签:none block github tar dock docker bsp png epo
安装使用docker for mac
Without RBAC
kubectl apply -f https://getambassador.io/yaml/ambassador/ambassador-no-rbac.yaml
---
apiVersion: v1
kind: Service
metadata:
name: ambassador
spec:
type: NodePort
ports:
- port: 80
selector:
service: ambassador
kubectl apply -f ambassador-service.yaml
---
apiVersion: v1
kind: Service
metadata:
name: qotm
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
name: qotm_mapping
prefix: /qotm/
service: qotm
spec:
selector:
app: qotm
ports:
- port: 80
name: http-qotm
targetPort: http-api
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: qotm
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: qotm
spec:
containers:
- name: qotm
image: datawire/qotm:1.1
ports:
- name: http-api
containerPort: 5000
resources:
limits:
cpu: "0.1"
memory: 100Mi
kubectl apply -f qotm.yaml
kubectl get svc -o wide ambassador
http://localhost:32598
https://www.getambassador.io/user-guide/getting-started
https://github.com/rongfengliang/ambassador-learning
标签:none block github tar dock docker bsp png epo
原文地址:https://www.cnblogs.com/rongfengliang/p/9270114.html