text stringlengths 0 59.1k |
|---|
```sh |
$ kubectl get svc minio-service |
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE |
minio-service 10.55.248.23 104.199.249.165 9000:31852/TCP 1m |
``` |
### Step 4: Resource cleanup |
You can cleanup the cluster using |
```sh |
kubectl delete statefulset minio \ |
&& kubectl delete svc minio \ |
&& kubectl delete svc minio-service |
``` |
<|endoftext|> |
# source: k8s_examples/_archived/storage/minio/minio-distributed-service.yaml type: yaml |
apiVersion: v1 |
kind: Service |
metadata: |
name: minio-service |
spec: |
type: LoadBalancer |
ports: |
- port: 9000 |
targetPort: 9000 |
protocol: TCP |
selector: |
app: minio |
<|endoftext|> |
# source: k8s_examples/_archived/javaee/wildfly-rc.yaml type: yaml |
apiVersion: v1 |
kind: ReplicationController |
metadata: |
name: wildfly-rc |
labels: |
name: wildfly |
context: docker-k8s-lab |
spec: |
replicas: 1 |
template: |
metadata: |
labels: |
name: wildfly |
spec: |
containers: |
- name: wildfly-rc-pod |
image: arungupta/wildfly-mysql-javaee7:k8s |
ports: |
- containerPort: 8080 |
<|endoftext|> |
# source: k8s_examples/_archived/javaee/mysql-service.yaml type: yaml |
apiVersion: v1 |
kind: Service |
metadata: |
name: mysql-service |
labels: |
name: mysql-pod |
context: docker-k8s-lab |
spec: |
ports: |
# the port that this service should serve on |
- port: 3306 |
# label keys and values that must match in order to receive traffic for this service |
selector: |
name: mysql-pod |
context: docker-k8s-lab |
<|endoftext|> |
# source: k8s_examples/_archived/javaee/README.md type: docs |
## Java EE Application using WildFly and MySQL |
The following document describes the deployment of a Java EE application using [WildFly](http://wildfly.org) application server and MySQL database server on Kubernetes. The sample application source code is at: https://github.com/javaee-samples/javaee7-simple-sample. |
### Prerequisites |
https://github.com/kubernetes/kubernetes/blob/master/docs/user-guide/prereqs.md |
### Start MySQL Pod |
In Kubernetes a [_Pod_](https://kubernetes.io/docs/user-guide/pods.md) is the smallest deployable unit that can be created, scheduled, and managed. It's a collocated group of containers that share an IP and storage volume. |
Here is the config for MySQL pod: [mysql-pod.yaml](mysql-pod.yaml) |
<!-- BEGIN MUNGE: mysql-pod.yaml --> |
<!-- END MUNGE: EXAMPLE --> |
Create the MySQL pod: |
```sh |
kubectl create -f examples/javaee/mysql-pod.yaml |
``` |
Check status of the pod: |
```sh |
kubectl get -w po |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.