text stringlengths 0 59.1k |
|---|
You can use the CLI commands by running the following: |
```sh |
$ docker run --privileged --entrypoint="/usr/bin/bash" -it -e="OPENSHIFTCONFIG=/config/admin.kubeconfig" -v ${OPENSHIFT_CONFIG}:/config openshift/origin |
$ osc config use-context public-default |
$ osc --help |
``` |
## Cleanup |
Clean up your cluster from resources created with this example: |
```sh |
$ ${OPENSHIFT_EXAMPLE}/cleanup.sh |
``` |
<|endoftext|> |
# source: k8s_examples/_archived/openshift-origin/openshift-service.yaml type: yaml |
apiVersion: v1 |
kind: Service |
metadata: |
name: openshift |
spec: |
ports: |
- name: openshift |
port: 8443 |
targetPort: 8443 |
selector: |
name: openshift |
type: LoadBalancer |
<|endoftext|> |
# source: k8s_examples/_archived/newrelic/newrelic-config-template.yaml type: yaml |
apiVersion: v1 |
kind: Secret |
metadata: |
name: newrelic-config |
type: Opaque |
data: |
config: {{config_data}} |
<|endoftext|> |
# source: k8s_examples/_archived/newrelic/newrelic-daemonset.yaml type: yaml |
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 |
kind: DaemonSet |
metadata: |
name: newrelic-agent |
labels: |
tier: monitoring |
app: newrelic-agent |
version: v1 |
spec: |
selector: |
matchLabels: |
name: newrelic |
template: |
metadata: |
labels: |
name: newrelic |
spec: |
# Filter to specific nodes: |
# nodeSelector: |
# app: newrelic |
hostPID: true |
hostIPC: true |
hostNetwork: true |
containers: |
- resources: |
requests: |
cpu: 0.15 |
securityContext: |
privileged: true |
env: |
- name: NRSYSMOND_logfile |
value: "/var/log/nrsysmond.log" |
image: newrelic/nrsysmond |
name: newrelic |
command: [ "bash", "-c", "source /etc/kube-newrelic/config && /usr/sbin/nrsysmond -E -F" ] |
volumeMounts: |
- name: newrelic-config |
mountPath: /etc/kube-newrelic |
readOnly: true |
- name: dev |
mountPath: /dev |
- name: run |
mountPath: /var/run/docker.sock |
- name: sys |
mountPath: /sys |
- name: log |
mountPath: /var/log |
volumes: |
- name: newrelic-config |
secret: |
secretName: newrelic-config |
- name: dev |
hostPath: |
path: /dev |
- name: run |
hostPath: |
path: /var/run/docker.sock |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.