按照OpenShift教程,执行的记录-保存一份(安装一个oc命令,结尾有下载地址)

版权声明:本文为博主原创文章,可以转载分享,希望大家相互学习,共同进步 https://blog.csdn.net/shenhonglei1234/article/details/65001315

/**
 * 类描述信息
 *
 * @author Freddy Shen
 * @since 17/3/22
 */

    Last login: Tue Mar 21 20:32:00 on console
    UsertekiMacBook-Pro:~ user$ oc version
    oc v1.3.0
    kubernetes v1.3.0+52492b4
    features: Basic-Auth
    UsertekiMacBook-Pro:~ user$ oc login master.shanghai.openshift3roadshow.com
    The server uses a certificate signed by an unknown authority.
    You can bypass the certificate check, but any data you send to the server could be intercepted by others.
    Use insecure connections? (y/n): y

    Authentication required for https://master.shanghai.openshift3roadshow.com:443 (openshift)
    Username: user51
    Password:
    Login successful.

    You have one project on this server: "explore-51"

    Using project "explore-51".
    Welcome! See 'oc help' to get started.
            UsertekiMacBook-Pro:~ user$ oc project explore-51
    Already on project "explore-51" on server "https://master.shanghai.openshift3roadshow.com:443".
    UsertekiMacBook-Pro:~ user$ oc project
    Using project "explore-51" on server "https://master.shanghai.openshift3roadshow.com:443".
    UsertekiMacBook-Pro:~ user$ oc get pod
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-n8kik   1/1       Running   0          3m
    UsertekiMacBook-Pro:~ user$ oc get pod parksmap-1-n8kik -o yaml
    apiVersion: v1
    kind: Pod
    metadata:
    annotations:
    kubernetes.io/created-by: |
    {"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicationController","namespace":"explore-51","name":"parksmap-1","uid":"2b4f2ccf-0ead-11e7-8803-0207258e034b","apiVersion":"v1","resourceVersion":"365915"}}
    kubernetes.io/limit-ranger: 'LimitRanger plugin set: cpu, memory request for container
    parksmap; cpu, memory limit for container parksmap'
    openshift.io/deployment-config.latest-version: "1"
    openshift.io/deployment-config.name: parksmap
    openshift.io/deployment.name: parksmap-1
    openshift.io/generated-by: OpenShiftWebConsole
    openshift.io/scc: restricted
    creationTimestamp: 2017-03-22T03:11:05Z
    generateName: parksmap-1-
    labels:
    app: parksmap
    deployment: parksmap-1
    deploymentconfig: parksmap
    name: parksmap-1-n8kik
    namespace: explore-51
    resourceVersion: "366152"
    selfLink: /api/v1/namespaces/explore-51/pods/parksmap-1-n8kik
    uid: 2fb3466b-0ead-11e7-8803-0207258e034b
    spec:
    containers:
            - image: docker.io/openshiftroadshow/parksmap@sha256:d6d321390e0c8db598b23bab6d65b126bf3d1e61a9de6515e3389951996c0369
    imagePullPolicy: IfNotPresent
    name: parksmap
    ports:
            - containerPort: 8080
    protocol: TCP
    resources:
    limits:
    cpu: "4"
    memory: 1Gi
    requests:
    cpu: 100m
    memory: 512Mi
    securityContext:
    capabilities:
    drop:
            - KILL
        - MKNOD
        - SETGID
        - SETUID
        - SYS_CHROOT
    privileged: false
    runAsUser: 1000580000
    seLinuxOptions:
    level: s0:c24,c14
    terminationMessagePath: /dev/termination-log
    volumeMounts:
            - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
    name: default-token-8gzh2
    readOnly: true
    dnsPolicy: ClusterFirst
    host: ip-192-199-0-77.ap-northeast-2.compute.internal
    imagePullSecrets:
            - name: default-dockercfg-gp3q0
    nodeName: ip-192-199-0-77.ap-northeast-2.compute.internal
    nodeSelector:
    env: user
    restartPolicy: Always
    securityContext:
    fsGroup: 1000580000
    seLinuxOptions:
    level: s0:c24,c14
    serviceAccount: default
    serviceAccountName: default
    terminationGracePeriodSeconds: 30
    volumes:
            - name: default-token-8gzh2
    secret:
    secretName: default-token-8gzh2
    status:
    conditions:
            - lastProbeTime: null
    lastTransitionTime: 2017-03-22T03:11:05Z
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: 2017-03-22T03:11:30Z
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: 2017-03-22T03:11:05Z
    status: "True"
    type: PodScheduled
    containerStatuses:
            - containerID: docker://4382db63443c332b54a6c0fae758d733ae07341c785353409f96b4b2ad1bf478
    image: docker.io/openshiftroadshow/parksmap@sha256:d6d321390e0c8db598b23bab6d65b126bf3d1e61a9de6515e3389951996c0369
    imageID: docker-pullable://docker.io/openshiftroadshow/parksmap@sha256:d6d321390e0c8db598b23bab6d65b126bf3d1e61a9de6515e3389951996c0369
    lastState: {}
    name: parksmap
    ready: true
    restartCount: 0
    state:
    running:
    startedAt: 2017-03-22T03:11:29Z
    hostIP: 192.199.0.77
    phase: Running
    podIP: 10.1.26.3
    startTime: 2017-03-22T03:11:05Z
    UsertekiMacBook-Pro:~ user$ oc get services
    NAME       CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
    parksmap   172.30.102.141   <none>        8080/TCP   7m
    UsertekiMacBook-Pro:~ user$
    UsertekiMacBook-Pro:~ user$ oc get service parksmap -o yaml
    apiVersion: v1
    kind: Service
    metadata:
    annotations:
    openshift.io/generated-by: OpenShiftWebConsole
    creationTimestamp: 2017-03-22T03:10:56Z
    labels:
    app: parksmap
    name: parksmap
    namespace: explore-51
    resourceVersion: "365873"
    selfLink: /api/v1/namespaces/explore-51/services/parksmap
    uid: 2a9fc0fe-0ead-11e7-8803-0207258e034b
    spec:
    clusterIP: 172.30.102.141
    portalIP: 172.30.102.141
    ports:
            - name: 8080-tcp
    port: 8080
    protocol: TCP
    targetPort: 8080
    selector:
    deploymentconfig: parksmap
    sessionAffinity: None
    type: ClusterIP
    status:
    loadBalancer: {}
    UsertekiMacBook-Pro:~ user$
    UsertekiMacBook-Pro:~ user$ oc get pods -o wide
    NAME               READY     STATUS    RESTARTS   AGE       IP          NODE
    parksmap-1-n8kik   1/1       Running   0          12m       10.1.26.3   ip-192-199-0-77.ap-northeast-2.compute.internal
    UsertekiMacBook-Pro:~ user$ oc describe service parksmap
    Name:        parksmap
    Namespace:    explore-51
    Labels:          app=parksmap
    Selector:     deploymentconfig=parksmap
    Type:        ClusterIP
    IP:          172.30.102.141
    Port:        8080-tcp   8080/TCP
    Endpoints:    10.1.26.3:8080
    Session Affinity:  None
    No events.
    UsertekiMacBook-Pro:~ user$ oc get dc
    NAME       REVISION   DESIRED   CURRENT   TRIGGERED BY
    parksmap   1          1         1         config,image(parksmap:1.2.0)
    UsertekiMacBook-Pro:~ user$ oc get rc
    NAME         DESIRED   CURRENT   AGE
    parksmap-1   2         2         17m
    UsertekiMacBook-Pro:~ user$ oc describe svc parksmap
    Name:        parksmap
    Namespace:    explore-51
    Labels:          app=parksmap
    Selector:     deploymentconfig=parksmap
    Type:        ClusterIP
    IP:          172.30.102.141
    Port:        8080-tcp   8080/TCP
    Endpoints:    10.1.26.3:8080,10.1.32.5:8080
    Session Affinity:  None
    No events.
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-n8kik   1/1       Running   0          19m
    parksmap-1-uvjzr   1/1       Running   0          2m
    UsertekiMacBook-Pro:~ user$ oc delete pod parksmap-1-uvjzr
    pod "parksmap-1-uvjzr" deleted
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS              RESTARTS   AGE
    parksmap-1-f6rie   0/1       ContainerCreating   0          11s
    parksmap-1-n8kik   1/1       Running             0          20m
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-f6rie   1/1       Running   0          39s
    parksmap-1-n8kik   1/1       Running   0          20m
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-f6rie   1/1       Running   0          48s
    parksmap-1-n8kik   1/1       Running   0          20m
    UsertekiMacBook-Pro:~ user$ oc get routes
    UsertekiMacBook-Pro:~ user$ oc get services
    NAME       CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
    parksmap   172.30.102.141   <none>        8080/TCP   24m
    UsertekiMacBook-Pro:~ user$ oc expose service parksmap
    route "parksmap" exposed
    UsertekiMacBook-Pro:~ user$ oc get routes
    NAME       HOST/PORT                                                       PATH      SERVICES   PORT       TERMINATION
    parksmap   parksmap-explore-51.cloudapps.shanghai.openshift3roadshow.com             parksmap   8080-tcp
    UsertekiMacBook-Pro:~ user$ oc expose service --help
    Expose containers internally as services or externally via routes

    There is also the ability to expose a deployment configuration, replication controller, service, or pod
    as a new service on a specified port. If no labels are specified, the new object will re-use the
    labels from the object it exposes.

    Usage:
    oc expose (-f FILENAME | TYPE NAME) [--port=port] [--protocol=TCP|UDP] [--target-port=number-or-name] [--name=name] [--external-ip=external-ip-of-service] [--type=type] [options]

    Examples:
            # Create a route based on service nginx. The new route will re-use nginx's labels
    oc expose service nginx

  # Create a route and specify your own label and route name
    oc expose service nginx -l name=myroute --name=fromdowntown

  # Create a route and specify a hostname
    oc expose service nginx --hostname=www.example.com

  # Expose a deployment configuration as a service and use the specified port
    oc expose dc ruby-hello-world --port=8080

            # Expose a service as a route in the specified path
    oc expose service nginx --path=/nginx

    Options:
            --container-port='': Synonym for --target-port
      --create-external-load-balancer=false: If true, create an external load balancer for this service (trumped by --type). Implementation is cloud provider dependent. Default is 'false'.
            --dry-run=false: If true, only print the object that would be sent, without sending it.
            --external-ip='': Additional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP.
            -f, --filename=[]: Filename, directory, or URL to a file identifying the resource to expose a service
      --generator='': The name of the API generator to use.
            --hostname='': Set a hostname for the new route
  -l, --labels='': Labels to apply to the service created by this call.
      --load-balancer-ip='': IP to assign to to the Load Balancer. If empty, an ephemeral IP will be created and used (cloud-provider specific).
            --name='': The name for the newly created object.
            --no-headers=false: When using the default output, don't print headers.
            -o, --output='': Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/release-1.3/docs/user-guide/jsonpath.md].
            --output-version='': Output the formatted object with the given group version (for ex: 'extensions/v1beta1').
            --overrides='': An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
      --path='': Set a path for the new route
      --port='': The port that the resource should serve on.
            --protocol='': The network protocol for the service to be created. Default is 'TCP'.
            --record=false: Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.
  -R, --recursive=false: Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
      --save-config=false: If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future.
            --selector='': A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.
            --session-affinity='': If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP'
            -a, --show-all=true: When printing, show all resources (false means hide terminated pods.)
      --show-labels=false: When printing, show all labels as the last column (default hide labels column)
      --sort-by='': If non-empty, sort list types using this field specification.  The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.
      --target-port='': Name or number for the port on the container that the service should direct traffic to. Optional.
      --template='': Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
            --type='': Type for this service: ClusterIP, NodePort, or LoadBalancer. Default is 'ClusterIP'.

    Use "oc options" for a list of global command-line options (applies to all commands).
    UsertekiMacBook-Pro:~ user$ oc get routes
    NAME       HOST/PORT                                                       PATH      SERVICES   PORT       TERMINATION
    parksmap   parksmap-explore-51.cloudapps.shanghai.openshift3roadshow.com             parksmap   8080-tcp
    UsertekiMacBook-Pro:~ user$ oc get sa
    NAME       SECRETS   AGE
    builder    2         1d
    default    2         1d
    deployer   2         1d
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-6hvaz   1/1       Running   0          24m
    parksmap-1-n8kik   1/1       Running   0          47m
    UsertekiMacBook-Pro:~ user$ oc get pod
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-6hvaz   1/1       Running   0          24m
    parksmap-1-n8kik   1/1       Running   0          47m
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-6hvaz   1/1       Running   0          24m
    parksmap-1-n8kik   1/1       Running   0          47m
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-6hvaz   1/1       Running   0          1h
    parksmap-1-n8kik   1/1       Running   0          1h
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME               READY     STATUS    RESTARTS   AGE
    parksmap-1-6hvaz   1/1       Running   0          1h
    parksmap-1-n8kik   1/1       Running   0          2h
    UsertekiMacBook-Pro:~ user$ oc get all | grep natinal
-bash: grep: command not found
    oc getUsertekiMacBook-Pro:~ user$ oc get all | grep national
-bash: grep: command not found


^C
    UsertekiMacBook-Pro:~ user$ oc get all
^C
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME                    READY     STATUS    RESTARTS   AGE
    nationalparks-1-build   0/1       Error     0          2m
    parksmap-1-6hvaz        1/1       Running   0          1h
    parksmap-1-n8kik        1/1       Running   0          2h
    UsertekiMacBook-Pro:~ user$ oc get all |grep national
-bash: grep: command not found
    UsertekiMacBook-Pro:~ user$ oc get all |grep national
-bash: grep: command not found
^[[A^[[A^[[AUsertekiMacBook-Pro:~ user$ oc get pods
    UsertekiMacBook-Pro:~ user$ co get all
-bash: co: command not found
    UsertekiMacBook-Pro:~ user$ oc get all
    NAME                       TYPE                                                                 FROM          LATEST
    bc/nationalparks           Source                                                               Git@master    1
    NAME                       TYPE                                                                 FROM          STATUS    STARTED         DURATION
    builds/nationalparks-1     Source                                                               Git@master    Failed    5 minutes ago   20s
    NAME                       DOCKER REPO                                                          TAGS          UPDATED
    is/nationalparks           172.30.150.128:5000/explore-51/nationalparks
    is/parksmap                172.30.150.128:5000/explore-51/parksmap                              1.2.0         2 hours ago
    NAME                       REVISION                                                             DESIRED       CURRENT   TRIGGERED BY
    dc/nationalparks           0                                                                    1             0         config,image(nationalparks:latest)
    dc/parksmap                1                                                                    2             2         config,image(parksmap:1.2.0)
    NAME                       DESIRED                                                              CURRENT       AGE
    rc/parksmap-1              2                                                                    2             2h
    NAME                       HOST/PORT                                                            PATH          SERVICES        PORT       TERMINATION
    routes/nationalparks       nationalparks-explore-51.cloudapps.shanghai.openshift3roadshow.com                 nationalparks   8080-tcp
    routes/parksmap            parksmap-explore-51.cloudapps.shanghai.openshift3roadshow.com                      parksmap        8080-tcp
    NAME                       CLUSTER-IP                                                           EXTERNAL-IP   PORT(S)         AGE
    svc/parksmap               172.30.102.141                                                       <none>        8080/TCP        2h
    NAME                       READY                                                                STATUS        RESTARTS        AGE
    po/nationalparks-1-build   0/1                                                                  Error         0               5m
    po/parksmap-1-6hvaz        1/1                                                                  Running       0               1h
    po/parksmap-1-n8kik        1/1                                                                  Running       0               2h
    UsertekiMacBook-Pro:~ user$ oc get all | grep national
-bash: grep: command not found
    UsertekiMacBook-Pro:~ user$ oc delete bc/nationalparks dc/nationalparks routes/nationalparks po/nationalparks-1-build
    buildconfig "nationalparks" deleted
    deploymentconfig "nationalparks" deleted
    route "nationalparks" deleted
    Error from server: pods "nationalparks-1-build" not found
    UsertekiMacBook-Pro:~ user$ oc get all
    NAME                  DOCKER REPO                                                     TAGS          UPDATED
    is/nationalparks      172.30.150.128:5000/explore-51/nationalparks
    is/parksmap           172.30.150.128:5000/explore-51/parksmap                         1.2.0         2 hours ago
    NAME                  REVISION                                                        DESIRED       CURRENT   TRIGGERED BY
    dc/parksmap           1                                                               2             2         config,image(parksmap:1.2.0)
    NAME                  DESIRED                                                         CURRENT       AGE
    rc/parksmap-1         2                                                               2             2h
    NAME                  HOST/PORT                                                       PATH          SERVICES   PORT       TERMINATION
    routes/parksmap       parksmap-explore-51.cloudapps.shanghai.openshift3roadshow.com                 parksmap   8080-tcp
    NAME                  CLUSTER-IP                                                      EXTERNAL-IP   PORT(S)    AGE
    svc/parksmap          172.30.102.141                                                  <none>        8080/TCP   2h
    NAME                  READY                                                           STATUS        RESTARTS   AGE
    po/parksmap-1-6hvaz   1/1                                                             Running       0          2h
    po/parksmap-1-n8kik   1/1                                                             Running       0          2h
    UsertekiMacBook-Pro:~ user$ oc delete is/nationalparks
    imagestream "nationalparks" deleted
    UsertekiMacBook-Pro:~ user$ oc get all
    NAME                  DOCKER REPO                                                     TAGS          UPDATED
    is/parksmap           172.30.150.128:5000/explore-51/parksmap                         1.2.0         2 hours ago
    NAME                  REVISION                                                        DESIRED       CURRENT   TRIGGERED BY
    dc/parksmap           1                                                               2             2         config,image(parksmap:1.2.0)
    NAME                  DESIRED                                                         CURRENT       AGE
    rc/parksmap-1         2                                                               2             2h
    NAME                  HOST/PORT                                                       PATH          SERVICES   PORT       TERMINATION
    routes/parksmap       parksmap-explore-51.cloudapps.shanghai.openshift3roadshow.com                 parksmap   8080-tcp
    NAME                  CLUSTER-IP                                                      EXTERNAL-IP   PORT(S)    AGE
    svc/parksmap          172.30.102.141                                                  <none>        8080/TCP   2h
    NAME                  READY                                                           STATUS        RESTARTS   AGE
    po/parksmap-1-6hvaz   1/1                                                             Running       0          2h
    po/parksmap-1-n8kik   1/1                                                             Running       0          2h
    UsertekiMacBook-Pro:~ user$ oc get pods
    NAME                    READY     STATUS      RESTARTS   AGE
    nationalparks-1-build   0/1       Completed   0          8m
    nationalparks-1-rgl5k   1/1       Running     0          5m
    parksmap-1-6hvaz        1/1       Running     0          2h
    parksmap-1-n8kik        1/1       Running     0          2h
    UsertekiMacBook-Pro:~ user$ oc policy add-role-to-user view -z default
    UsertekiMacBook-Pro:~ user$ oc get dc
    Unable to connect to the server: dial tcp: i/o timeout
    UsertekiMacBook-Pro:~ user$
    UsertekiMacBook-Pro:~ user$
    UsertekiMacBook-Pro:~ user$ oc env dc nationalparks -e MONGODB_USER=mongodb -e MONGODB_PASSWORD=mongodb -e MONGODB_DATABASE=mongodb -e MONGODB_SERVER_HOST=mongodb


    deploymentconfig "nationalparks" updated
    UsertekiMacBook-Pro:~ user$
    UsertekiMacBook-Pro:~ user$
    UsertekiMacBook-Pro:~ user$ oc get dc nationalparks -o yaml
    apiVersion: v1
    kind: DeploymentConfig
    metadata:
    annotations:
    openshift.io/generated-by: OpenShiftWebConsole
    creationTimestamp: 2017-03-22T05:38:44Z
    generation: 4
    labels:
    app: nationalparks
    name: nationalparks
    namespace: explore-51
    resourceVersion: "411383"
    selfLink: /oapi/v1/namespaces/explore-51/deploymentconfigs/nationalparks
    uid: d05c4d4e-0ec1-11e7-8803-0207258e034b
    spec:
    replicas: 1
    selector:
    deploymentconfig: nationalparks
    strategy:
    resources: {}
    rollingParams:
    intervalSeconds: 1
    maxSurge: 25%
    maxUnavailable: 25%
    timeoutSeconds: 600
    updatePeriodSeconds: 1
    type: Rolling
    template:
    metadata:
    creationTimestamp: null
    labels:
    app: nationalparks
    deploymentconfig: nationalparks
    spec:
    containers:
            - env:
            - name: MONGODB_USER
    value: mongodb
        - name: MONGODB_PASSWORD
    value: mongodb
        - name: MONGODB_DATABASE
    value: mongodb
        - name: MONGODB_SERVER_HOST
    value: mongodb
    image: 172.30.150.128:5000/explore-51/nationalparks@sha256:2d3a3786c35b7da3bc5e0d1c0f182bd61bdc3ac990ee8f40484f934991e1ec88
    imagePullPolicy: Always
    name: nationalparks
    ports:
            - containerPort: 8080
    protocol: TCP
        - containerPort: 8443
    protocol: TCP
        - containerPort: 8778
    protocol: TCP
    resources: {}
    terminationMessagePath: /dev/termination-log
    dnsPolicy: ClusterFirst
    restartPolicy: Always
    securityContext: {}
    terminationGracePeriodSeconds: 30
    test: false
    triggers:
            - imageChangeParams:
    automatic: true
    containerNames:
            - nationalparks
    from:
    kind: ImageStreamTag
    name: nationalparks:latest
    namespace: explore-51
    lastTriggeredImage: 172.30.150.128:5000/explore-51/nationalparks@sha256:2d3a3786c35b7da3bc5e0d1c0f182bd61bdc3ac990ee8f40484f934991e1ec88
    type: ImageChange
  - type: ConfigChange
    status:
    availableReplicas: 1
    details:
    causes:
            - type: ConfigChange
    message: config change
    latestVersion: 2
    observedGeneration: 4
    replicas: 1
    updatedReplicas: 1
    UsertekiMacBook-Pro:~ user$ oc label route nationalparks type=parksmap-backend
    route "nationalparks" labeled
    UsertekiMacBook-Pro:~ user$ oc policy add-role-to-user edit -z jenkins


下载地址:配置OC指令下载地址(mac版本的): openshift-origin-client-tools-v1.3.0-3ab7af3d097b57f933eccef684a714f2368804e7-mac
百度云 链接: https://pan.baidu.com/s/1pLHdmx9 密码: rvqm

展开阅读全文

没有更多推荐了,返回首页