This commit is contained in:
2018-10-05 08:14:24 -04:00
parent d848a5c5af
commit c970332c78
4 changed files with 33 additions and 7 deletions
+2 -2
View File
@@ -16,11 +16,11 @@ spec:
name: bob-builder
arguments:
- name: REGISTRY
value: knative-registry.knative-build.svc.cluster.local:80
value: knative-registry.knative-build.svc.cluster.local
- name: IMAGE
value: httpbin:latest
revisionTemplate:
spec:
container:
image: knative-registry.knative-build.svc.cluster.local:80/httpbin:latest
image: knative-registry.knative-build.svc.cluster.local/httpbin:latest
imagePullPolicy: Always
+1 -1
View File
@@ -22,7 +22,7 @@ spec:
- /workspace
- ${REGISTRY}/${IMAGE}
- --push
- --allow-insecure
# - --allow-insecure
# As an implementation detail, this template mounts the host's daemon socket.
+25 -4
View File
@@ -39,19 +39,41 @@ spec:
containers:
- env:
- name: REGISTRY_HTTP_ADDR
value: 0.0.0.0:80
value: 0.0.0.0:443
- name: REGISTRY_HTTP_TLS_CERTIFICATE
value: /certs/cert.crt
- name: REGISTRY_HTTP_TLS_KEY
value: /certs/cert.key
image: registry:2
name: registry
resources: {}
volumeMounts:
- mountPath: /var/lib/registry
name: knative-registry-data
- mountPath: /certs
name: certs
ports:
- containerPort: 443
restartPolicy: Always
volumes:
- name: knative-registry-data
persistentVolumeClaim:
claimName: knative-registry-data
- name: certs
configMap:
name: knative-registry-certs
status: {}
# ---
# kind: ConfigMap
# apiVersion: v1
# metadata:
# name: knative-registry-certs
# namespace: knative-build
# data:
# tls.crt:
# tls.key:
# ---
---
apiVersion: v1
kind: Service
@@ -68,11 +90,10 @@ spec:
clusterIP: None
ports:
- name: knative-registry-http
port: 80
port: 443
# nodePort: 80
targetPort: 80
targetPort: 443
selector:
io.kompose.service: knative-registry
status:
loadBalancer: {}
---
+5
View File
@@ -0,0 +1,5 @@
kubectl delete -f app.yml
kubectl delete -f build.yml
kubectl apply -f build.yml
kubectl apply -f app.yml
kubectl describe builds