[root@fastvm-centos-7-7-31 ~]# kubectl run sample-httpd --image=han0495/sample-httpd
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
deployment.apps/sample-httpd created
[root@fastvm-centos-7-7-31 ~]# kubectl get all
NAME READY STATUS RESTARTS AGE
pod/sample-httpd-86b74f6f64-7gcmj 1/1 Running 0 7s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 172.21.0.1 <none> 443/TCP 33m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/sample-httpd 1/1 1 1 8s
NAME DESIRED CURRENT READY AGE
replicaset.apps/sample-httpd-86b74f6f64 1 1 1 8s
$ oc new-app httpd~https://github.com/chhanz/sample-httpd-example.git
$ oc new-app httpd~https://github.com/chhanz/sample-httpd-example.git
--> Found image 3413d55 (6 weeks old) in image stream "openshift/httpd" under tag "2.4" for "httpd"
Apache httpd 2.4
----------------
Apache httpd 2.4 available as container, is a powerful, efficient, and extensible web server. Apache supports a variety of features, many implemented as compiled modules which extend
the core functionality. These can range from server-side programming language support to authentication schemes. Virtual hosting allows one Apache installation to serve many different Web sites.
Tags: builder, httpd, httpd24
* A source build using source code from https://github.com/chhanz/sample-httpd-example.git will be created
* The resulting image will be pushed to image stream tag "sample-httpd-example:latest"
* Use 'oc start-build' to trigger a new build
* This image will be deployed in deployment config "sample-httpd-example"
* Ports 8080/tcp, 8443/tcp will be load balanced by service "sample-httpd-example"
* Other containers can access this service through the hostname "sample-httpd-example"
--> Creating resources ...
imagestream.image.openshift.io "sample-httpd-example" created
buildconfig.build.openshift.io "sample-httpd-example" created
deploymentconfig.apps.openshift.io "sample-httpd-example" created
service "sample-httpd-example" created
--> Success
Build scheduled, use 'oc logs -f bc/sample-httpd-example' to track its progress.
Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:
'oc expose svc/sample-httpd-example'
Run 'oc status' to view your app.

https://chhanz.github.io/openshift/2019/11/25/openshift4-dev-env/
Content type
Image
Digest
Size
59 MB
Last updated
over 6 years ago
docker pull han0495/sample-httpd