amitsadaphule commented on issue #1869:
URL: https://github.com/apache/camel-k/issues/1869#issuecomment-765379303


   Thanks for the reply @astefanutti ! I'm using minikube and here's how I 
setup the registry:
   1. Built `gcr.io/google_containers/kube-registry-proxy:0.4` image from 
source https://github.com/povilasv/kube-registry-proxy.git
   2. Built `registry` binary from source 
https://github.com/docker/distribution-library-image.git
   3. Built `registry.hub.docker.com/library/registry:2.7.1` image from source 
https://github.com/docker/distribution-library-image.git by copying the 
`registry` binary built in step #2 to `distribution-library-image` directory
   4. Executed `minikube addons enable registry`
   
   Post that I was able to see the registry pods coming up:
   ```
   # kubectl get pods -A
   NAMESPACE     NAME                                READY   STATUS             
RESTARTS   AGE
   default       camel-k-operator-57bbcbd6dc-j5kcv   1/1     Running            
0          154m
   default       sample-5bc495b9cb-rbbzm             0/1     ImagePullBackOff   
0          151m
   kube-system   coredns-f9fd979d6-7678j             1/1     Running            
6          10d
   kube-system   etcd-p006vm87                       1/1     Running            
12         10d
   kube-system   kube-apiserver-p006vm87             1/1     Running            
14         10d
   kube-system   kube-controller-manager-p006vm87    1/1     Running            
9          10d
   kube-system   kube-proxy-q7pfw                    1/1     Running            
6          10d
   kube-system   kube-scheduler-p006vm87             1/1     Running            
6          10d
   kube-system   registry-8d28l                      1/1     Running            
3          2d15h
   kube-system   registry-proxy-q26fb                1/1     Running            
3          2d15h
   ```
   Also, here's the output of `kubectl get ip camel-k -o yaml`
   
   ```
   # kubectl get ip camel-k -o yaml
   apiVersion: camel.apache.org/v1
   kind: IntegrationPlatform
   metadata:
     creationTimestamp: "2021-01-22T10:11:08Z"
     generation: 1
     labels:
       app: camel-k
     managedFields:
     - apiVersion: camel.apache.org/v1
       fieldsType: FieldsV1
       fieldsV1:
         f:metadata:
           f:labels:
             .: {}
             f:app: {}
         f:spec:
           .: {}
           f:build:
             .: {}
             f:maven:
               .: {}
               f:settings: {}
             f:publishStrategy: {}
             f:registry:
               .: {}
               f:address: {}
               f:insecure: {}
           f:kamelet: {}
           f:resources: {}
         f:status:
           .: {}
           f:build:
             .: {}
             f:baseImage: {}
             f:buildStrategy: {}
             f:maven:
               .: {}
               f:localRepository: {}
               f:settings:
                 .: {}
                 f:configMapKeyRef:
                   .: {}
                   f:key: {}
                   f:name: {}
               f:timeout: {}
             f:persistentVolumeClaim: {}
             f:publishStrategy: {}
             f:registry:
               .: {}
               f:address: {}
               f:insecure: {}
             f:runtimeVersion: {}
             f:timeout: {}
           f:cluster: {}
           f:kamelet:
             .: {}
             f:repositories: {}
           f:phase: {}
           f:resources: {}
           f:version: {}
       manager: kamel
       operation: Update
       time: "2021-01-22T10:11:17Z"
     name: camel-k
     namespace: default
     resourceVersion: "703539"
     selfLink: 
/apis/camel.apache.org/v1/namespaces/default/integrationplatforms/camel-k
     uid: 74046037-87a3-4c9f-bd12-40af390713c7
   spec:
     build:
       maven:
         settings: {}
       publishStrategy: Spectrum
       registry:
         address: 10.103.184.236
         insecure: true
     kamelet: {}
     resources: {}
   status:
     build:
       baseImage: adoptopenjdk/openjdk11:ubi
       buildStrategy: routine
       maven:
         localRepository: /tmp/artifacts/m2
         settings:
           configMapKeyRef:
             key: settings.xml
             name: camel-k-maven-settings
         timeout: 3m45s
       persistentVolumeClaim: camel-k
       publishStrategy: Spectrum
       registry:
         address: 10.103.184.236
         insecure: true
       runtimeVersion: 1.6.0
       timeout: 5m0s
     cluster: Kubernetes
     kamelet:
       repositories:
       - uri: github:apache/camel-kamelets
     phase: Ready
     version: 1.3.0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to